Solaris 11 JDK installation

Posted by user20121221 on Oracle Blogs See other posts from Oracle Blogs or by user20121221
Published on Tue, 4 Sep 2012 21:04:53 +0000 Indexed on 2012/09/04 21:45 UTC
Read the original article Hit count: 271

Filed under:

JAVA -JDK install on Solaris 11

  1. pkg list -s jdk-7

  2. pkg install jdk-7

  3. ls /usr/jdk/instances

    jdk1.5.0 jdk1.6.0

  4. mv jdk1.7.0_07 /usr/jdk/instances/jdk1.7.0

  5. ls -l

    total 9

    drwxr-xr-x 5 root bin 5 Sep 4 16:08 instances

    lrwxrwxrwx 1 root root 18 Jul 14 11:11 jdk1.6.0_26 -> instances/jdk1.6.0

    lrwxrwxrwx 1 root root 8 Sep 4 16:09 latest -> jdk1.6.0

    drwxr-xr-x 4 root bin 4 Jul 14 11:04 packages

  6. rm latest

  7. ln -s instances/jdk1.7.0 jdk1.7.0_07

  8. ln -s jdk1.7.0_07 latest

  9. cd /usr/

  10. ls -ld java

    lrwxrwxrwx 1 root root 12 Sep 4 16:12 java -> jdk/jdk1.6.0

  11. rm java

  12. ln -s jdk/latest java

  13. java -version

    java version "1.7.0_07"
    Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
    Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)

  14. stop firefox

    cd /usr/lib/firefox/plugins

    rm libnpjp2.so

    ln -s /usr/jdk/jdk1.7.0_07/jre/lib/i386/libnpjp2.so libnpjp2.so

    start firefox

© Oracle Blogs or respective owner

Related posts about /Oracle