|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I have installed the linux mandrake 10.2 in my laptop. I am trying to execute some program in java. however i get the next error: javac: command not found. I have tried to set the PATH in the .bash_profile file and in the profile file in /etc to PATH="$PATH:/usr/lib/jdk-1.4.2_07/jre/bin" However i get the same error ![]() And when I run "which java " command, I get a directory : usr/bin/java and I think, this is not the directory that contain the jdk. I have tried to look for this problem in internet, however i dont understand what is the problem Can somebody help me, please? Andrea |
|
#2
|
||||
|
||||
|
often you'll find a "fake" directory [i think they're called alias directories, or linking directories"] in unix/linux.
chances are, when you go to /usr/bin/java, it's the exact same as going to /usr/lib/jdk-whatever What happens if you try using the full path to execute Javac? /usr/lib/jdk-1.4.2_07/jre/bin/javac myfile.java |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Please Help! Javac: command not found |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|