LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   problem with javac command (https://www.linuxquestions.org/questions/programming-9/problem-with-javac-command-3178/)

mekasrinu 06-07-2001 11:18 PM

Hi,
I installed jdk1.3.1 on my slackware linux in the directory /root/jdk1.3.1. The problem is to run the javac I am forced to go to /root/jdk1.3.1/bin and execute the command as ./javac instead of directly giving javac. If I give javac at the command prompt it is giving the following error:
can't find libjava.so.
One more question is how can I run the java and java from any other directory.

Any one please help me.

Thanks and Regards,
Srinivas.M

My mail id is m.srinivas@cybertech.co.in

UsurpiorHarbour 06-08-2001 12:37 PM

You have to have /root/jdk1.3.1/bin in your path in order for you to execute any files in that directory else where in your system. I think that it will also fix the other problem but I am not 100% sure about that befcause I never used JDK in linux before.

doodah 06-12-2001 07:45 PM

you may want to uninstall the JDK and reinstall it in somthing like

/usr/local/JDK

that way it will already be in the path.. and all the libs should be too.. cuz the libjava.so error is cuz its not in any of the libspath...

if you keep everything in /root... other users wont be able to access it...


All times are GMT -5. The time now is 07:41 PM.