LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-08-2004, 07:31 PM   #1
fedivh
Member
 
Registered: Sep 2003
Location: Uruguay/Southamerica
Distribution: Gentoo
Posts: 144

Rep: Reputation: 15
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
 
Old 02-08-2004, 07:35 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
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

Last edited by hw-tph; 02-08-2004 at 07:38 PM.
 
Old 02-08-2004, 07:47 PM   #3
fedivh
Member
 
Registered: Sep 2003
Location: Uruguay/Southamerica
Distribution: Gentoo
Posts: 144

Original Poster
Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
Where to put mysql-connector-java folder dukehazord Linux - General 1 09-10-2004 11:30 AM
Download and install linux (wich one?) linux_newbie1 Linux - Newbie 2 03-24-2004 10:18 AM
Slackware 9 Install: wich kernel too choose? smiltee Slackware 5 09-24-2003 06:39 PM
install folder alaios Linux - General 2 02-19-2003 05:12 PM


All times are GMT -5. The time now is 05:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration