Mint 13: Installing Oracle JDK 7

How to install Oracle JDK 7 instead of the OpenJDK on your Linux Mint 13 (or Ubuntu 12) system. I found that I needed the official JDK in order to properly run JetBrains’ RubyMine IDE as well as a few other applications which do not play well with OpenJDK.
To do this open a terminal and execute the following commands in order:
1
2
3
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
After the installation runs its course, check to make sure that Java is reporting the correct version of JDK 7. Execute the command:
1
java -version
It should return something like this:
1
2
3
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
If the version reported back is not the latest as installed by the above command you may need to force the system to update its references to Java and its executables. Run the following command and then check the version again to verify:
1
sudo update-java-alternatives -s java-7-oracle

Published by

Tim Clark

Experienced Business Owner, Chief Information Officer, Vice President, Chief Software Architect, Application Architect, Project Manager, Software Developer, Senior Web Developer, Graphic Designer & 3D Modeler, University Instructor, University Program Chair, Academic Director. Specialties: Ruby, Ruby on Rails, JavaScript, JQuery, AJAX, Node.js, React.js, Angular.js, MySQL, PostgreSQL, MongoDB, SQL Server, Responsive Design, HTML5, XHTML, CSS3, C#, ASP.net, Project Management, System Design/Architecture, Web Design, Web Development, Adobe CS6 (Photoshop, Illustrator)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s