JAVA PATH
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   amitabh_pandey
Posted On:   Saturday, June 5, 2004 01:31 AM

Hello,
How can i set the java PATH in the .bash_profile.i am trying something but not works.

Please give the details.
Thanks & Regards
Amitabh


Please use html tags to format code blocks.

Re: JAVA PATH

Posted By:   Anjani_Kalyan  
Posted On:   Sunday, June 6, 2004 09:24 PM

And a way to set any of the above mentioned system vars in .bash_profile is



PATH=/usr/bin:/usr/sbin

CLASSPATH=/home/myhome/javacode/classes/



export PATH

export CLASSPATH

Re: JAVA PATH

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, June 5, 2004 08:35 AM

There is no "JAVA PATH" in Unix/Linux.


There is a "PATH", which the shell uses to find executables when you give their names as commands (e.g."ls", but also "java" and "javac").


And there is a "CLASSPATH" which Java uses to find classes.


And there is a "JAVA_HOME", which many tools, scripts etc. use to find the root of the Java installation.


Once you set the JAVA_HOME, you should add "${JAVA_HOME}/bin", to the "PATH".

About | Sitemap | Contact