Setting the path variable for Java Comp.
Greetings,
I'm running Fedora Core 1 and am having trouble setting the path variable.
/home/lmellen/Java is my working directory and is where the j2sdk1.4.2_04 resides. If in this directory I type:
/home/lmellen/java/j2sdk1.4.2_04/bin/javac HelloWorldApp.java
it compiles fine.
Now I did google and came to /home/lmellen/.bash_profile.
vi .bash_profile has:
#user specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
After :$HOME/bin i've tried all combinations of:
:$HOME/lmellen/Java/j2sdk1.4.2_04/bin
:/home/lmellen/Java/j2sdk1.4.2_04/bin
:$HOME/Java/j2sdk1.4.2_04/bin
Nothing seems to work, all I get is javac: command not found
Either I'm close or a mile away. I could use some help.
Thank You---Larry
-----------------------------------------------------------------------------------------------
I'm also having to do the same with the next step!
/home/lmellen/java/j2sdk1.4.2_04/bin/java HelloWorldApp--works,
just java gives me-- java: command not found
Last edited by lmellen; 04-06-2004 at 02:44 PM.
|