Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 am setting a remote Red Hat Linux, and need to install JVM 1.6, the current version is java 1.4.2. After downloaded the rpm jre, and install correctly, asked for the installed version with command< java -version > and the system say again java 1.4.2.
I am newbie in Linux, Java and English language, but can read and follow instructions, please anybody can help me.
Thanks
What you really need to do can be summed up in two steps:
uninstall/remove the OLD version 1.4.2, and make sure that there are links in a path directory for the NEW version (1.6.x).
For the first step, query your package manager (dpkg on Debian based systems, rpm on RH based systems)
For the second, you need to know the install folder for your new version, and make sure there is an environment variable (perhaps defined in /etc/profile or /etc/environment, depending upon your distribution) and that the BIN under that path gets added to the path variable. A little VI editing may be needed for this. You can also simply link all of the critical executable files from that bin folder into {for example} /usr/local/bin. IF that has already been done, simply removing the old version may suffice.
Quite easy for a sysadmin or anyone who normally installs from source. If it seems difficult to you, you may want to get some help from someone comfortable with such changes.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 6
Quote:
uninstall/remove the OLD version 1.4.2
No. That's why you have the /etc/alternatives mechanism :
To select between versions.
""query your package manager"" : No jre / jdk package for RHEL5.
The available one, jdk-1.6.0_26-fcs.<arch>.rpm for EL5 :
CERN / Scientific Linux links post # 4.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.