Le 20/12/12 07:16, Andrew Myers a écrit :
Hi,
Can I run Java 7 on OI?
I was going to follow the instructions here:
http://docs.oracle.com/javase/7/docs/webnotes/install/solaris/solaris-jdk.html#install-svr4
However it looks like I already have jdk1.6.0_26 installed under /usr/jdk,
and I have no idea how to remove it :(
If anyone would mind helping a poor n00b like myself out, I'd be very
appreciative!
Best regards,
Andrew.
richard@x3200:/usr/jdk$ ls -lad /usr/java/bin
drwxr-xr-x 3 10 143 47 sept. 25 07:16 /usr/java/bin/
richard@x3200:/usr/jdk$ ls -lad /usr/java
lrwxrwxrwx 1 root root 10 mai 18 2012 /usr/java ->
jdk/latest/
richard@x3200:/usr/jdk$ java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Server VM (build 23.5-b02, mixed mode)
What has seemed to work for me is respecting the following structure:
richard@x3200:/usr/jdk$ ls -la
total 20
drwxr-xr-x 4 root bin 10 nov. 18 07:41 ./
drwxr-xr-x 40 root sys 55 oct. 18 05:37 ../
drwxr-xr-x 8 root bin 8 nov. 18 07:40 instances/
lrwxrwxrwx 1 root root 18 sept. 3 2011 jdk1.6.0_26 ->
instances/jdk1.6.0/
lrwxrwxrwx 1 root root 21 mai 18 2012 jdk1.7.0_04 ->
instances/jdk1.7.0_04/
lrwxrwxrwx 1 root root 21 août 16 08:37 jdk1.7.0_06 ->
instances/jdk1.7.0_06/
lrwxrwxrwx 1 root root 21 oct. 18 04:02 jdk1.7.0_07 ->
instances/jdk1.7.0_07/
lrwxrwxrwx 1 root root 22 nov. 18 07:41 jdk1.7.0_09 ->
instances/jdk1.7.0_09//
lrwxrwxrwx 1 root root 11 nov. 18 07:39 latest ->
jdk1.7.0_09/
drwxr-xr-x 4 root bin 4 août 27 2011 packages/
unpack the 32 and 64 bit tarballs under instances,
then create a symlink in /usr/jdk
finally, update the "latest" symlink to the version you wish to have by
default
cheers
_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss