Java 1.4.0 SDK install problem
I am running Mandrake 9 and i am an extreme newbie to linux. I extracted an rpm for linux 1.4.0., now I am trying to compile a file in /home/simon/Documents. typing javac Simple.java does not work (I will sort that out later, i heard it has something to do with .bash_profile, or classpath or something...) so i was looking at another thread here and a guy said he used
but for me, when I try that I get this message...
Error: failed /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so, because libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
So, this is probably a really simple problem (caused as a result of me not having a clue as to what I am doing), but i would really appreciate if I could get some help with this. Thanks!
you will need to set a parameter in the .bash_profile or in the .profile used to source to define the java classpath so that when you run the javac is knows where to find the classes and libraries...try inserting the lines to either your .bash_profile, .bashrc or .profile
JAVA_HOME=[location of jdk]; export JAVA_HOME
CLASSPATH=$JAVA_HOME/class; export CLASSPATH
i aslo had been facing this problem. The only way to solve it for all the user is to goto /etc and then edit bashrc
In the bottom of the file write
Another way is
pathmunge (path of j2sdk*.*/bin)
3. Reboot the system
|All times are GMT -5. The time now is 10:19 PM.|