How To Remove OpenJDK 7 JRE From Linux Mint 17.1
How To Remove OpenJDK 7 JRE From Linux Mint 17.1
More
Next Blog
Ridzwan's Blog
Thursday, January 29, 2015
Ridzwan
ln -s /usr/lib/jvm/jdk1.8.0_31/jre/lib/amd64/libnpjp2.so .
cd ~
Do not forget to include the period (.) in the second last command above. It denotes that the link
will be created in the current directory (.mozilla/plugins). Once this link is created, launch Firefox
again, type 'about:plugins' in the location box and the resulting display will show that Oracle's Java
plugin is present. Also, if you click on Tools -> Add-ons, followed by selecting the 'Plugins' tab,
you will see that the Java plugin is present.
About Me
ridz
Full name: Ridzwan
Abdullah - a retired
IT professional.
View my complete
profile
Blog Archive
2015 (9)
January (9)
Tuning
Rebecca
(Linux Mint
17.1
Cinnamon)
- Part 2...
How To
Remove
OpenJDK 7
JRE From
Linux Mint
17.1
STEP 4: Launch Synaptic again and this time, type 'openjdk' into the search box. Now mark the
following files for complete removal:
default-jre
default-jre-headless
openjdk-7-jre
openjdk-7-jre-headless
openjdk-7-jre-lib
Fixing Oracle
Java
Alternatives
Links on
Linux Min...
Click the 'Apply' button to remove the marked files. If you look into the /usr/lib/jvm directory, you
will find that there is now just one directory there - the one containing Oracle's Java. The files in
the /etc/alternatives directory will no longer contain links to Java.
Upgrading
Oracle JDK
8 on
Windows
Upgrading
Oracle JDK
8 on Linux
Mint 17.1
NOTE: If you have set up links previously, you can now remove those links using the 'updatealternatives --remove-all itemname' (where itemname is the name of the Java link you wish to
remove). Just make sure that you only remove the Java related links - removing other non-Java
links may harm the whole system. It is safe to remove these links as there is one Java installed Oracle's SE 8. The list of the files are:
Tuning
Rebecca
(Linux Mint
17.1
Cinnamon)
- Part 1...
java
javaws
keytool
orbd
pack200
policytool
rmid
rmiregistry
servertool
tnameserv
unpack200
How to Install
Oracle Java
and
Android
Studio on
a...
How To Install
Oracle JDK
7 and
Android
Studio on ...
How To Install
Oracle Java
and
Android
Studio on
W...
STEP 5: Now we have to set the environment variables and paths correctly for the whole system. If
you have already set these variables previously, then you can safely skip this step. If not, execute
the following command:
sudo nano /etc/profile
2014 (7)
2013 (1)
This will execute the nano text editor and open the /etc/profile file for editing. Now add the following
lines at the end of the file.
2012 (18)
2011 (4)
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_31
export PATH=$PATH:$JAVA_HOME/bin
2010 (8)
2009 (21)
Save the file and close it. Note that, upon system startup, these will set the JAVA_HOME and
PATH environment variables for the whole system. The JAVA_HOME environment variable points
to the JDK root while the PATH environment variable will add the /bin directory of the JDK to
whatever path that has already been specified. This will enable the 'javac' command to be executed
from any directory. Now log out and then log in again to the system in order to make sure that both
the environment variables are set.
Followers
STEP 6: Check that you have correctly installed Oracle Java by executing the commands:
echo $JAVA_HOME
echo $PATH
java -version
javac -version
If you see the string 'jdk1.8.0_31' in the output to the above commands, then you have
successfully removed OpenJDK 7 JRE and replaced it with Oracle SE 8.
Now whenever Oracle issue an updated version, all you have to do in order to use the new version
of Java SE is to follow STEP 1, STEP 3 and STEP 5 above. Just make sure that you change the
version number to the new version in the commands. No more messing around with 'updatealternative' commands - and that alone make this whole exercise worthwhile. Happy computing!
converted by W eb2PDFConvert.com
No comments:
Post a Comment
Enter your comment...
Publish
Preview
Newer Post
Home
Older Post
converted by W eb2PDFConvert.com