Hi,
I am facing problems in setting the classpath to invoke javac to run java programs. Please provide a solution to easily solve many of my problems.
Anyhow, to simplify the problem, I did some homework on my own and managed to set some variables in /etc/environment as:
$CLASSPATH = /etc/java/jdk1.6.0_01/lib:.
$JAVA_HOME = /etc/java/jdk1.6.0_01/
$PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
Now the main problem is that i cannot call 'java' or 'javac' at the terminal. However, when i get to the folder: cd $JAVA_HOME/bin/
and type './java' or './javac' only then do these executables work.
what i want is that i would like both of these executables to run from anywhere in filesystem directory when in the terminal. Because of this problem many IDEs will not compile any Java program.
Please help
Thanks
Lamdacore




