Originally posted by rchillal
I have installed Java on Mandrake 10.1
The file name I downloaded was something jre-1_5_0_01-i586_rpm.bin
I logged in as root and created a directory java in usr/local/
I extracted the files and I found the directory java/jre-1.5.0_01 under /usr
I set the path using
When I run the command >javac
It says bashc: javac not found
Then I put
Still I am not able to run javac command.
Where have I gone wrong ?
I added the path /usr/java/jre1.5.0_01/bin to the PATH variable in profile file.
Still I am not able to run java command from any other directory other than /usr/java/jre1.5.0_01/bin direcrtory
Also I see that there is no javac file in the bin directory.
Can somebody please help and tell me exactly what do I do after installing Java ?
It won't work. You are using JRE (Java Runtime Environment). That only run java applications, you can't actually compile/develop applications with it (javac compiler is not included). The one you want is called Java 2 SE (java 2 Platform Standard Edition) or Java 2 EE (Java 2 Enterprise Edition).
There're other ways to compile java too. Gcc (gcj to be specific) can compile java, but most of it's gui capabilities (as Swing classes) won't work.