LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Problem with Java-SDK (http://www.linuxquestions.org/questions/programming-9/problem-with-java-sdk-288831/)

xkill 02-11-2005 03:53 AM

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!

Boby 02-11-2005 06:32 AM

Hello and welcome to Linuxquestions!

Try the hole path to javac
Code:

/path/of/java/javac file
You can put this in your /etc/bashrc file...

PATH=$PATH:/path/to/javac
export PATH

Now each time you open a terminal it should see javac in your path.

Boby

csfalcon 02-11-2005 09:27 AM

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 06:59 AM.