|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
I downloaded the JDK and I cant get my java and javac to work. It keeps telling me 'command not found' even when I am in the bin directory. I am running RH Linux and tried setting the CLASSPATH in the sh shell by typing
CLASSPATH=the java home export CLASSPATH actually, my main problem is getting the variables to stick. It dissapears whenever I restart |
|
#2
|
|||||
|
|||||
|
Re: path
Quote:
"Execute file 'javac' which is located in the current directory": Code:
./javac Quote:
Shorter: Code:
export CLASSPATH=foo Quote:
Put the export line(s) into /etc/profile.local (or, if your /etc/profile does not source profile.local, directly into /etc/profile) if you want the variables to be available for all users or into ~/.profile if you only want them for your account. HTH
__________________
PHP manual | MySQL manual | Apache docs | Linux Documentation Project | Free Software Foundation Smart Questions HOWTO | PHP security | PHP FAQ | Posting HOWTO Wikipedia | English dictionary | Google | News | RFCs Thus Spoke Zarathustra | A Skeptic's Guide to Christianity | Project Gutenberg | Skeptic's Annotated Bible ParEcon | Marxists Internet Archive | The Memory Hole | Landover Baptist | DHMO Research Universal Declaration of Human Rights | UN Charter | Geneva Conventions Sinfest | Chopping Block | Filthy Lies | Bob the Angry Flower | How to Shoot Yourself In the Foot |
|
#3
|
||||
|
||||
|
You can also add JAVA HOME/bin to your PATH, like that you can run javac or any other of the java executables from anywhere. Use:
PATH=$PATH:java home/bin export PATH from which file you end up using as suggested by realnowhereman |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > path |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|