1. Go to /etc directory.

2. Open bashrc file.

3. Add following parameters at the end of the file:

a. export JAVA_HOME=/usr/java/jdk1.6.0_17/

b. export PATH=$JAVA_HOME/bin:$PATH

c. export CLASSPATH=.:$JAVA_HOME/lib/classes.zip

4. Save the changes.

5. Execute command - # bash

6. Execute # echo $JAVA_HOME to verify JAVA_HOME variable is set properly.


« Cakephp Change extension of template file from .ctp to .php
Use model inside helper class cakephp »


Leave a Reply