|
|
Updating to the sun java on 64 bit ubuntuFrom $1Table of contentsThis page is a compendium of the steps required to update the jdk as culled from this excellent set of instructions from the coffee coke and code blog Follow the instructions at the coffee and code blog to copy the jdk to the /usr/lib/jvm directory. The ubuntu script that modifies the *.jinfo file is quite finicky and I prefer modifying it manually in an editor ( sudo vi /usr/lib/jvm/.java-6-sun.jinfo) . Most browsers as of Jan 2009 tend to be 32bit and/or require 32 bit plugins. To avoid confusion the sun jdk 64 bit install does not provide these components. As specified by sun when you install the jvm
There are no 64-bit versions of the Java Plugin, Java Web Start or Java Control Panel; however the 32-bit versions of the JRE can be installed on 64-bit systems in order to obtain this functionality. Note that only 32-bit browsers are supported at this time.
The plugin and appletviewer pointed to by this *.jinfo can be installed as indicated on the ubuntuforums thread or enabled manually if a previous installation already exists and the link to those can be updated in this file. Instructions on enabling these features are available here Ubuntu puts its jvms in the /usr/lib/jvm directory. The exact java virtual machine used can be setup manually by a modification of two files. 1) The directory /usr/lib/jvm has a .java-6-sun.jinfo file that ubuntu uses to inform itself of various attributes of the java platform. Look at this file /usr/lib/jvm/.java-6-sun.jinfo and modify it to tell ubuntu where the jvm is located. Specifically looking at the name and alias . Set those to point to the directory with the java development kit ( which includes ther runtime and jre) In my case I have name=java-6-sun-1.6.0.11 2) The alias in the section above mentions the symlink as having a name java-6-sun , accordingly I have a symlink called java-6-sun pointing to the directory where the jvm is located harijay@mymachine:/usr/lib/jvm$ ls -latr And if everything went correctly you will have the correct java version, which can be tested by harijay@mymachine:~$ java -version java version "1.6.0_11" Java(TM) SE Runtime Environment (build 1.6.0_11-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode) Java 32bit plugin install for a 64 bit systemThe best method that is an alternative to the symlinking method as described by sun is to get the openjdk web plugin .( OR see below for the 64 bit plugin) Visit this site and surrender youself to it. It will install the iced-tea javav plugin and hopefully not break everything else . The Java 64 bit plugin install for a Ubuntu 64 bit systemSince Java 6 update 10 , Sun provides a 64 bit plugin for 64 bit browsers on Ubuntu Hardy Heron and upwards. The plugin support for 64 bit however reached maturity with Java 6 update 12 . To install the plugin install java 6 update 12 as given above. To get the plugin to work . symlink the file libnpjp2.so to your home plugins folder as shown below. I f the /home/youirusername/.mozilla/plugins directory does not exist create it . Then symlink the file ln -s /usr/lib/jvm/java-6-sun-1.6.0.12/jre/lib/amd64/libnpjp2.so /home/hari/.mozilla/plugins/. I have Firefox which is 64 bit on my 8.04 Hardy heron box and the plugin works great! . There is no need to use the 32 bit plugin as mentioned above
Tags:
|