Problem with Java-SDK
Hi,
I use Suse 9.1 and I've installed the Java-SDK with the Suse Linux-CD. But when I use the command javac for compiling a java-file, the bash doesn't find the command. What have I done wrong?:scratch: Thanks for your help! |
Hello and welcome to Linuxquestions!
Try the hole path to javac Code:
/path/of/java/javac file PATH=$PATH:/path/to/javac export PATH Now each time you open a terminal it should see javac in your path. Boby |
boby is correct, you need to set the path in /etc/bashrc or /etc/profile. But I'd put the path to the "bin" directory that contains javac, since that directory also contains java, jar... you might need those later.
Code:
export PATH=$PATH:<java home>/bin |
All times are GMT -5. The time now is 05:23 AM. |