Jun 28, 2017 We have a need to use an old version of JAVA due to incompatibility with some apps.I have scoured the www for a way to run th. Java Silent Uninstall. By andrewsmith30. This method work only for Java 8 Update 40 and below versions. Because Java change the msi procedures. Keeping old versions of Java on your system presents a serious security risk. Uninstalling older versions of Java from your system ensures that Java applications will run with the latest security and performance improvements on your system. How can I remove older versions of Java? Windows users can safely uninstall older versions of Java: when. # which java /usr/bin/java I am not sure how the old one was deployed – Programmer Apr 30 '15 at 9:34 1 How to install software is not a programming question.
Yes, see the instructions on the Apple website Restore Apple Java 6. If you have JDK 7 or later versions installed on your system and you want to restore Apple Java 6, then those JDK versions need to be uninstalled first. See the instructions to Uninstall JDK. MORE TECHNICAL INFORMATION Uninstall JDK.
I have a Linux box on which Java 1.7 is installed:
But for some new tool I need to install the jdk-8u45-linux-x64.tar.gz
So how can I remove old one and install the new one?
ProgrammerProgrammer3 Answers
To remove OpenJDK (the one you've already installed)
sudo apt-get purge openjdk-*
Make a new directory for your new JDK
sudo mkdir -p /usr/local/java
Copy the file to the directory (you should be in that file path)
sudo cp -r jdk-8u45-linux-x64.tar.gz /usr/local/java/
Extract the file
sudo tar xvzf jdk-8u45-linux-x64.tar.gz
You should add this to your PATH now. To do that:
a. Open /etc/profile :
sudo gedit /etc/profile
b. Scroll down (the end) and add the path where your jdk was installed
JAVA_HOME=/usr/local/java/jdk1.8.0_45PATH=$PATH:$HOME/bin:$JAVA_HOME/binexport JAVA_HOMEexport PATH
Save and exit
Inform your Linux system where your Oracle Java JDK/JRE is located.
a. Notify the system that Oracle Java JRE is available for use
sudo update-alternatives --install '/usr/bin/java' 'java' '/usr/local/java/jdk1.8.0_45/bin/java' 1
b. Notify the system that Oracle Java JDK is available for use
sudo update-alternatives --install '/usr/bin/javac' 'javac' '/usr/local/java/jdk1.8.0_45/bin/javac' 1
c. Notify the system that Oracle Java Web start is available for use
sudo update-alternatives --install '/usr/bin/javaws' 'javaws' '/usr/local/java/jdk1.8.0_20/bin/javaws' 1
Inform your Linux system that Oracle Java JDK/JRE must be the default Java.
a. Set the java runtime environment for the system
sudo update-alternatives --set java /usr/local/java/jdk1.8.0_45/bin/java
b. Set the javac compiler for the system
sudo update-alternatives --set javac /usr/local/java/jdk1.8.0_45/bin/javac
c. Set Java Web start for the system
sudo update-alternatives --set javaws /usr/local/java/jdk1.8.0_20/bin/javaws
Reload your system wide PATH
source /etc/profile
Check the new version and you're done!
java -version
Just unpack the new Java version, for example into /opt
. Then do
Put these export
s into the startup files for your shell and you should be set. It is not necessary to uninstall the Java 7 installation.
Uninstall Old Java Versions Sccm
On Centos/Redhat
First do : rpm -qa|grep jdk
And then : rpm -e <the version which you dont want>
Not the answer you're looking for? Browse other questions tagged javalinux or ask your own question.
Java Uninstall Previous Versions
all I have installed both JDK 1.7 update 21
(1.7.0.210) and 51
(1.7.0.510), and so I wonder do I need to uninstall the older version which is JDK 1.7 update 21
, as they both show up in the list of Programs and Features
on Windows. Second, I tried Java Uninstall Tool, it only reports There are no older versions of Java on your computer
. So I wonder can I just use the Programs and Features
that manually uninstall any version of Java if I need to.
Another question is that I am using Eclipse
doing Java
and Android
programming, so I wonder if I remove the older version of Java
, will it affect the compiler settings in Eclipse
, since Eclipse
is kinda automatically detects your JDK
versions and hence sets Compiler compliance level
in Preferences
.
cheers
daiyuedaiyue