LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   In wich folder do I have to install Java? (https://www.linuxquestions.org/questions/linux-software-2/in-wich-folder-do-i-have-to-install-java-143845/)

fedivh 02-08-2004 07:31 PM

In wich folder do I have to install Java?
 
I downloaded the self extracting binary of the JVM from SUN.
It works because I extracted it in my home directory but all the programs can't find it. So where do I have to self-extract it?
I use Mandrake 9.2

hw-tph 02-08-2004 07:35 PM

You can extract it pretty much anywhere and then add the "bin" subdirectory to the path. I prefer installing it to /usr/local/java so I get /usr/local/java/j2_version_blah as my java home.

Then add the bin subdirectory to your $PATH environment variable. You can do this on the commandline like this: export PATH=$PATH:/usr/local/java/j2whatever/bin

You can also set the $PATH in /etc/profile, ~/.bashrc or ~/.bash_profile or whatever you want.

For a more thorough explanation and walkthrough, please refer to my post here.

Håkan

fedivh 02-08-2004 07:47 PM

Thank you very much, it works now. Its very bad that they dont tell you in the Readme or in the Homepage that you have to do that part with export PATH
Thank you very much!


All times are GMT -5. The time now is 06:17 PM.