-   Programming (
-   -   Problem with Java-SDK (

xkill 02-11-2005 04:53 AM

Problem with Java-SDK
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 07:32 AM

Hello and welcome to Linuxquestions!

Try the hole path to javac

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

export PATH

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


csfalcon 02-11-2005 10: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.


export PATH=$PATH:<java home>/bin

All times are GMT -5. The time now is 10:20 AM.