Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding JAVA to my PATH. How can I? SUSE 9.1 1

Status
Not open for further replies.

josel

Programmer
Joined
Oct 16, 2001
Messages
716
Location
US
I have just installed JAVA. I now need to make sure

a) I actually installed it properly
b) Add its binaries to my PATH

To install JAVA I did:
Code:
1- Extracted j2re-1_4_1_02-linux.i586.rpm.bin from CDROM
   provided by software vendor
2- Executed above listed file and agreed to licenses
3- I then typed rpm - Uvh j2re-1_4_1_02-fcs-linux.i586.rpm

A couple of things echoed on screen and then back to command prompt.  No erros shown!!!

Search is out of order so I was not able to search
prior to posting - Thank you all for your assistance!

Regards;


Jose Lerebours


KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
PATH=$PATH:/pathtojava:
export PATH

set in your profile, and if for all users /etc/default/profile which may be different for bash,etc
 
First identify where Java was installed to:

rpm -ql j2re-1_4_1_02-fcs-linux

A long list of all the files that were installed will be shown. Keep an eye out for the path to the bin folder. i.e: /usr/java/1.4.1_02/bin

Append this path into your .bash_profile; under the $PATH environment variable. You'll need to log out then in again for the changes to take effect.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
I searched for "java" and found the directory thus was able to set my environment variables and got over the hurtle I was facing, but it sure is nice to lear that 'rpm' command you just posted.

Before I posted this question, I did the same search but came back with nothing - I must to have a typo and did not notice it. You post shows that there is always an easy way!

Thank you both!!!


Jose Lerebours




KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top