Friday, October 18, 2013

Manual Installation of Oracle Java (JDK) on Ubuntu

This method describes manual installation of Oracle Java (JDK) on Ubuntu 12.04.3 64-bit.

1. Download the Oracle Java JDK from:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Current version, at the moment of writing this post, is 1.7.0_45. If your version differs it will not be the problem because the procedure is the same.

2. Click on download button
























3. In the next screen click on radio button "Accept License Agreement"












4. Now click on the link with tar.gz archive. If you need 32-bit version (Linux x86) only the name of the archive differs but the procedure is the same.

















5. Now open the terminal and go to your Download folder (this is an example with default download folder location)








6. Unpack the tar.gz file











7. Move unpacked folder







8. Now install Oracle JDK



9. Configure current alternative for Oracle JDK (javac and java) by entering the command and number for current version from the list. If no other version is installed you will not be able to configure alternative, and there will be no list.






















10. Configure Firefox for Oracle Java. Create plugins folder if u don't have it already





11. Create symbolic link for libnpjp2.so in the plugins folder.
For 64-bit version:



For 32-bit version:



12. Restart Firefox and visit page:
http://www.java.com/en/download/installed.jsp
and click the "Verify Java version" button
















Accept any Java security questions and if everything went fine you should something like this