Re: On Linux errors for javac and java commands
Posted By:
Jeff_Hubbach
Posted On:
Thursday, December 12, 2002 08:51 AM
You need to add the javac and java commands to your execution path. You can do this as follows:
PATH=$PATH:/usr/local/[java-directory]/bin
export PATH
You will also want to set a JAVA_HOME environment variable as follows:
JAVA_HOME=/usr/local/[java-directory]
export JAVA_HOME
If you want this in your path permanently (instead of having to run this for each shell you open), then you need to put it in your ~/.profile or ~/.bash_profile file, then logout and log back in.