LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Redhat 5 and java problem (https://www.linuxquestions.org/questions/linux-software-2/redhat-5-and-java-problem-706660/)

yakov1975 02-22-2009 02:30 PM

Redhat 5 and java problem
 
Hi All.
I have Linux Redhat 5 machine at my work. Default java of this linux version is 1.4.2
To run my application i need java 1.5
I performed installation of ibm-java2-i386-jre-5.0-9.0.i386.rpm. After installation i checked java version again and still getting 1.4.2
As i performed default rpm installation, i don't know the new java location.
Can any body help me to define new java to be default java on my machine.

Thanks Koby.

alan_ri 02-22-2009 05:34 PM

I don't know will the package ibm-java2-i386-jre-5.0-9.0.i386.rpm give you what you want because I never used it.I use Sun's jre which you can download from here (the latest version is Java Runtime Environment (JRE) 5.0 Update 17) if maybe that's what you'll need.
You can try to change default version of jre on the system with this command;
Code:

/usr/sbin/alternatives --config java
Maybe a few more steps will be necessary to change default version of jre but only if the above command gives you any error/s.


All times are GMT -5. The time now is 02:42 AM.