J2SE - Enviromental Variables
I installed the J2SE - SDK on Ubuntu,
How do I set the Enviromental Variables? |
In your ~/.bash_profile you can add an entry for JAVA_HOME and you can modify your PATH. For example:
Code:
export JAVA_HOME=/usr/local/jdk |
where can i find bash_profile?
:s i am a newbie :D |
In your home directory, it is a hidden file so you'll have to make your file manager display hidden files.
Which distro did you install? You may need to do more than just setting the path. |
what's a distro?
|
Quote:
http://en.wikipedia.org/wiki/BASH#Startup_scripts |
Once logon, type
$cd Now, you are in your home dir, then type $vi ./bash_profile Then add following line to the file export JAVA_HOME=/usr/local/jdk export PATH=$PATH:$JAVA_HOME/bin |
There shouldn't be a bash_profile in Ubuntu. It uses .profile instead (and it installs its JDK to /usr/lib/jvm, not to /usr/local).
|
All times are GMT -5. The time now is 08:15 AM. |