i searched and not found how to upgrade oracle jdk in here. I'm not satisfied with OpenJDK7 because it doesn't come with Java Compiler.
I have installed and configured Sun Java SDK 6 and I want to upgrade to Oracle JDK 7. I searched ppa's from launchpad an wubp8 but it didn't worked . How can I upgrade Sun JDK 6 to Oracle JDK 7 and also completely remove all Sun JDK 6 settings?
I'm very grateful for your answers.
Upgrade may cause problems , so its better to do a fresh install.
Completely remove Open-jdk
just use this simple commands in terminal to remove open jdk completely
How to install Oracle-Java
To get an automatically update-able Java from Oracle, you can you use the PPA provided from webup8.
Installing Oracle Java manually
For installing Latest Oracle Java:
To check ubuntu system architecture installed
or
Download the Oracle Java JDK for Linux. Make sure you select the correct compressed binaries for your system architecture 32-bit or 64-bit (which end in tar.gz).It will be downloaded in Downloads folder in home.So first open nautilus with sudo as
and make a folder java under
and then folow the following commands:
At this point you should have two uncompressed binary directories in /usr/local/java check it by
Now edit the system path file by
scroll down to the last and add following lines
Save and exit and write these commands in terminal to Inform your Ubuntu Linux system where your Oracle Java JDK/JRE is located.
Now everything is installed just check it by
the output must be like
Congratulation now its installed.
Please follow one of the suggested answers in the following Ask Ubuntu question:
How do I install Oracle Java JDK 7?
this should be able to update your jdk6 to jdk7.
My version is: 1.7.0_03
First uninstall:
Here you go to install the latest Java version 8 on Ubuntu, both JRE and JDK: