The Oracle version of Java will no longer be available through repos and must be manually installed. Here's how I did it.
1) Download the latest JDK from here: http://www.oracle.com/technetwork/java/javase/downloads/
2) Unpack the jdk (right now it unpacks as a directory called jdk1.7.0_02) and unpack it in to the /usr/lib/jvm/ directory.
3) construct a text file called /usr/lib/jvm/.jdk1.7.0_02.jinfo and put this in it:
name=jdk1.7.0_02 alias=jdk1.7.0_02 priority=1051 section=main hl java /usr/lib/jvm/jdk1.7.0_02/jre/bin/java hl keytool /usr/lib/jvm/jdk1.7.0_02/jre/bin/keytool hl pack200 /usr/lib/jvm/jdk1.7.0_02/jre/bin/pack200 hl rmid /usr/lib/jvm/jdk1.7.0_02/jre/bin/rmid hl rmiregistry /usr/lib/jvm/jdk1.7.0_02/jre/bin/rmiregistry hl unpack200 /usr/lib/jvm/jdk1.7.0_02/jre/bin/unpack200 hl orbd /usr/lib/jvm/jdk1.7.0_02/jre/bin/orbd hl servertool /usr/lib/jvm/jdk1.7.0_02/jre/bin/servertool hl tnameserv /usr/lib/jvm/jdk1.7.0_02/jre/bin/tnameserv hl jexec /usr/lib/jvm/jdk1.7.0_02/jre/lib/jexec jre policytool /usr/lib/jvm/jdk1.7.0_02/jre/bin/policytool jdk appletviewer /usr/lib/jvm/jdk1.7.0_02/bin/appletviewer jdk apt /usr/lib/jvm/jdk1.7.0_02/bin/apt jdk extcheck /usr/lib/jvm/jdk1.7.0_02/bin/extcheck jdk idlj /usr/lib/jvm/jdk1.7.0_02/bin/idlj jdk jar /usr/lib/jvm/jdk1.7.0_02/bin/jar jdk jarsigner /usr/lib/jvm/jdk1.7.0_02/bin/jarsigner jdk javac /usr/lib/jvm/jdk1.7.0_02/bin/javac jdk javadoc /usr/lib/jvm/jdk1.7.0_02/bin/javadoc jdk javah /usr/lib/jvm/jdk1.7.0_02/bin/javah jdk javap /usr/lib/jvm/jdk1.7.0_02/bin/javap jdk jconsole /usr/lib/jvm/jdk1.7.0_02/bin/jconsole jdk jdb /usr/lib/jvm/jdk1.7.0_02/bin/jdb jdk jhat /usr/lib/jvm/jdk1.7.0_02/bin/jhat jdk jinfo /usr/lib/jvm/jdk1.7.0_02/bin/jinfo jdk jmap /usr/lib/jvm/jdk1.7.0_02/bin/jmap jdk jps /usr/lib/jvm/jdk1.7.0_02/bin/jps jdk jrunscript /usr/lib/jvm/jdk1.7.0_02/bin/jrunscript jdk jsadebugd /usr/lib/jvm/jdk1.7.0_02/bin/jsadebugd jdk jstack /usr/lib/jvm/jdk1.7.0_02/bin/jstack jdk jstat /usr/lib/jvm/jdk1.7.0_02/bin/jstat jdk jstatd /usr/lib/jvm/jdk1.7.0_02/bin/jstatd jdk native2ascii /usr/lib/jvm/jdk1.7.0_02/bin/native2ascii jdk rmic /usr/lib/jvm/jdk1.7.0_02/bin/rmic jdk schemagen /usr/lib/jvm/jdk1.7.0_02/bin/schemagen jdk serialver /usr/lib/jvm/jdk1.7.0_02/bin/serialver jdk wsgen /usr/lib/jvm/jdk1.7.0_02/bin/wsgen jdk wsimport /usr/lib/jvm/jdk1.7.0_02/bin/wsimport jdk xjc /usr/lib/jvm/jdk1.7.0_02/bin/xjc plugin -javaplugin.so /usr/lib/jvm/jdk1.7.0_02/jre/lib/amd64/libjavaplugin_jni.so
4) run "sudo update-alternatives --config java" and choose jdk1.7.0_02
5) check that it's your current java by running "java -version" - you should get something like this back:
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
No Pingbacks for this post yet...
This blog is the location for all work involving software and hardware maintenance, updates, installs, etc., both routine and urgent, in the server room, the labs and the R&D rooms.
|<< <||> >>|