//
you're reading...
Linux, Linux, Ubuntu

How-to Install & Sun Java Development Kit 1.7


Oracle, the owners of Sun Java, retired the ‘distributor license’ that allows operating system vendors to provide the package to users in August of last year. This change in terms forced Ubuntu’s security board to announce that it would be removing Sun JDK package from its ‘Partner‘ repository, and ‘upgrading’ the official Java release on Ubuntu 10.04, 10.10 and 11.04 with an ‘empty’ package, thus disabling it. as a ‘security measure’.

Ubuntu have now decided against the latter action to ‘prevent unexpected failures’ on users installations.

“The Sun JDK packages will remain installed on current systems with no further security updates. On new systems, it will no longer be possible to install the packages from the partner archive. “

Sun JDK packages will be removed from the Ubuntu partner archive on February 16th 2012, after-which they will no longer be available to install through the Ubuntu Software Centre or Synaptic Package Manager.

 

Because no further security updates will be issued for Sun Java on Ubuntu, users who don’t rely on the official package are being urged to swap over to alternatives, such as the Oracle-endorsed OpenJDK.

The change in license does not affect availability of Sun Java for Linux only the permission for Operating Systems Distros to distribute it. Oracle’s Sun Java can be downloaded and manually installed from the Oracle website, which is the intention of this tutorial to show you how to accomplish for yourselves.

Special Note: This is a developer release of JDK 1.7, and proceed at your own risk. Backup everything you have on your system, and make sure to follow these instructions very carefully. Linux users who prefer to use the thoroughly tested Oracle JDK 1.6 or Oracle JDK 1.7 binaries instead of the OpenJDK builds currently available for Linux distributions can alternatively install the gratis download at http://oracle.com/java or you can use the Sun Java 1.6 PPA installation instructions from any one of my To-do list walk-through Ubuntu guides located near the upper right hand side of this blog screen.

The Java Runtime Environment provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language. In addition, two key deployment technologies are part of the JRE: Java Plug-in, which enables applets to run in popular browsers; and Java Web Start, which deploys standalone applications over a network. If you need the latest cutting-edge version of Sun Java you will need to click this link, otherwise you can install a ‘slightly’ older previous working version of Sun Java, much easier this way.

The following Java installation script solution kindly provided by:

http://github.com/flexiondotorg/oab-java6

Remove OpenJDK from your system:

sudo apt-get purge openjdk*

When you begin the installation process you will come to a window that will require you to accept the EULA to install, and you will need to click on your <Tab> key to select <OK> and press enter. (This will compile the packages you need and will take some time to install – be patient with it please)

cd ~/
sudo wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java6.sh -O oab-java6.sh
sudo chmod +x oab-java6.sh
sudo ./oab-java6.sh
sudo apt-get install sun-java6-jre
sudo apt-get install sun-java6-plugin

Alternative Installation Instructions:

Download the latest Oracle JDK 1.7 installation package from HERE. <—–

You will need to select the proper 32-bit or 64-bit installation package for your version of Ubuntu operating system:

Locate the file you just downloaded, and double-click on it. Extract the downloaded Oracle Java JDK archive folder to your home folder and rename the newly created folder to “java-7-oracle”.  After you get that done you will need to move this folder to /usr/lib/jvm using the following commands.

In terminal, copy and paste:

cd
sudo mkdir -p /usr/lib/jvm/
sudo mv java-7-oracle/ /usr/lib/jvm/

Install Update Java helper script:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install update-java
sudo update-java

The script will ask you to select the Java version, scroll down and select “java-7-oracle” for Oracle Java JDK 7, click OK and wait for it to finish. Here is an example:

Install Oracle Java 7 Mozilla Firefox Browser Plug-in:

sudo rm -f ~/.mozilla/plugins/libnpjp2.so ~/.mozilla/plugins/libjavaplugin_oji.so
sudo rm -f /usr/lib/firefox/plugins/libnpjp2.so /usr/lib/firefox/plugins/libjavaplugin_oji.so

Now create a symbolic link for the newly installed Java into the Mozilla plug-in directory, and first make sure to select for either 32-bit or 64-bit Ubuntu:

For Ubuntu 32bit x86 Systems:

sudo mkdir -p ~/.mozilla/plugins
sudo ln -s /usr/lib/jvm/java-7-oracle/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/

For Ubuntu 64bit Systems:

sudo mkdir -p ~/.mozilla/plugins
sudo ln -s /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

And lastly, you need to go into your Firefox Plug-in Manager to disable any conflicting Java plugins and completely power-cycle your system:

Open Firefox >> Tools >> Add-ons >> and Disable IcedTea Plugin.

Source : http://debianhelp.wordpress.com/2011/11/13/how-to-install-sun-java-se-1-7/

About Made Sumitre

Saya hanya menulis dan membagikan apa yang sudah pernah saya baca.

Discussion

No comments yet.

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 )

Google+ photo

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

Connecting to %s

header

Timnas Indonesia Tim Sepakbola Nasional Indonesia mengenakan kostum baru yang diluncurkan di Stadion Utama Gelora Bung Karno, Senayan Jakarta.... Baca selengkapnya »

Anak Indonesia jadi siswa terbaik sekolah MU Anak Indonesia dari pasangan perkawinan campur, Jack Brown (11),.... Baca selengkapnya »

Timnas AFF Kuartet pemain Indonesia yang bermain di klub CS Vise di Divisi II Liga Belgia, yakni Syamsir Alam.... Baca selengkapnya »

TImnas IndonesiaPelatih Timnas PSSI, Nil Maizar, mengaku telah menemukan bentuk permainan timnas… Baca selengkapnya »

Blog Stats

  • 328,954 hits
%d bloggers like this: