Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed the java file i.e "jdk-6u18-linux-i586". And it is installed without an error. But when I execute the command "java -version" it doesn't show the above version, it shows the previous version which I installed during the installation of redhat enterprise linux server 5.
When you ran the installation sciprt jdk-6u18-linux-i586.bn, it created a directory jdk1.6.0_18.
You must run java from this directory in order to use the new version, or change the PATH variable and add the complete path to the above directory first:
I'm also facing some problems with Java installation.
I got a Red Hat Linux Enterprise 5.3 on an Intel 64 bit system.
Typing "java -version" I get
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-44)
meaning that some Java RE version is already installed.
I need to install the JRE 1.6 update 10 (not the latest).
After some googling, the best I found is jre-6u10-linux-amd64.rpm (extracted from jre-6u10-linux-x64-rpm.bin).
I'm not sure whether this rpm is suitable for an Intel-based system (I see 'amd' in the name)?
I tried to install it anyway (rpm -ivh ...), got this:
I actually got the dir /usr/java/jre1.6.0_10 meaning that the rpm installation I did sorted out something.
And when I move on that directory and type './java --version' I get
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)
as wished.
Now, I think 2 versions are installed on the system, I only need to arrange the PATH variable in order to have the new version launched when I type "java" from whatever directory.
As for the rpm thing, I actually got one after the execution of the .bin file. The thing is that the names are different
In java.sun.com now there is only jre-6u18-linux-x64-rpm.bin (maybe jre-6u10-linux-amd64.rpm was the name for previous versions)
You can check your installed version with:
As I wrote, I just need the "update 10", not the latest one; thus grabbed
jre-6u10-linux-x64-rpm.bin
from the Sun website. But when I run it I get
jre-6u10-linux-amd64.rpm
which is the one I installed.
You should better use a package made for RHEL based systems, so you can upgrade. You can get the correct package from here.
And I guess you have to uninstall the 32bit version prior installing the 64bit
which is exactly (apart from the update version) what I see in the Gnome Packages Manager, in the installed packages list (jre-1.6.0_10-fcs.x86_64).
At this point I'm not sure why the rpm I downloaded from Sun website has a 'amd64' in it.
I'm gonna try and see if it works, anyway.
Thanks a lot! I.O.U a beer!
PS: as for the previous installed version, which came with Red Hat, it appears in the same installed packages list as
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64; I didn't uninstalled it, gonna see if it causes any problem
Last edited by zeroquaranta; 02-24-2010 at 08:45 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.