Results 1 to 3 of 3

Thread: Installing a new java version in opensuse 11

  1. #1
    jdoklovic NNTP User

    Default Installing a new java version in opensuse 11

    Hi,

    I want to upgrade my jre/jdk on opsensuse 11.
    Currently I have jdk6u7 installed, and I'd like to upgrade it to jdk6u10.

    Doesn't matter to me if I use the sun rpm or simply extract it in my home directory... my problem is all the symlinks.

    Suse seems to use /usr/bin/java which is a symlink to /etc/alternatives/java, which is in turn a symlink to /usr/lib/jvm/jre-1.6.0-sun/bin/java

    I can easily change the /etc/alternatives/java link to point to my new jre, however, looking at the other stuff in /etc/alternatives/ there are a lot of other java related links.

    Do I need to update all of them?

    (here's what I mean by a lot)
    lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./jar -> /usr/lib/jvm/java-1.6.0-sun/bin/jar
    lrwxrwxrwx 1 root root 43 2008-08-24 10:58 ./jar.1.gz -> /usr/share/man/man1/jar-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 41 2008-08-24 10:58 ./jarsigner -> /usr/lib/jvm/java-1.6.0-sun/bin/jarsigner
    lrwxrwxrwx 1 root root 49 2008-08-24 10:58 ./jarsigner.1.gz -> /usr/share/man/man1/jarsigner-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 35 2008-08-24 10:56 ./java -> /usr/lib/jvm/jre-1.6.0-sun/bin/java
    lrwxrwxrwx 1 root root 44 2008-08-24 10:56 ./java.1.gz -> /usr/share/man/man1/java-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./javac -> /usr/lib/jvm/java-1.6.0-sun/bin/javac
    lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./javac.1.gz -> /usr/share/man/man1/javac-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 39 2008-08-24 10:58 ./javadoc -> /usr/lib/jvm/java-1.6.0-sun/bin/javadoc
    lrwxrwxrwx 1 root root 47 2008-08-24 10:58 ./javadoc.1.gz -> /usr/share/man/man1/javadoc-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./javah -> /usr/lib/jvm/java-1.6.0-sun/bin/javah
    lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./javah.1.gz -> /usr/share/man/man1/javah-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./javap -> /usr/lib/jvm/java-1.6.0-sun/bin/javap
    lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./javap.1.gz -> /usr/share/man/man1/javap-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 77 2008-08-24 10:58 ./javaplugin -> /usr/lib/jvm/java-1.6.0-sun-1.6.0.u7/jre/plugin/i386/ns7/libjavaplugin_oji.so
    lrwxrwxrwx 1 root root 27 2008-08-24 10:58 ./java_sdk -> /usr/lib/jvm/java-1.6.0-sun
    lrwxrwxrwx 1 root root 27 2008-08-24 10:58 ./java_sdk_1.6.0 -> /usr/lib/jvm/java-1.6.0-sun
    lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./java_sdk_1.6.0_exports -> /usr/lib/jvm-exports/java-1.6.0-sun
    lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./java_sdk_exports -> /usr/lib/jvm-exports/java-1.6.0-sun
    lrwxrwxrwx 1 root root 27 2008-08-24 10:58 ./java_sdk_sun -> /usr/lib/jvm/java-1.6.0-sun
    lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./java_sdk_sun_exports -> /usr/lib/jvm-exports/java-1.6.0-sun
    lrwxrwxrwx 1 root root 37 2008-08-24 10:56 ./javaws -> /usr/lib/jvm/jre-1.6.0-sun/bin/javaws
    lrwxrwxrwx 1 root root 46 2008-08-24 10:56 ./javaws.1.gz -> /usr/share/man/man1/javaws-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 29 2008-06-28 04:12 ./jaxp_parser_impl -> /usr/share/java/xerces-j2.jar
    lrwxrwxrwx 1 root root 28 2008-06-28 04:15 ./jaxp_transform_impl -> /usr/share/java/xalan-j2.jar
    lrwxrwxrwx 1 root root 64 2008-08-24 10:56 ./jce_1.6.0_sun_local_policy -> /usr/lib/jvm-private/java-1_6_0-sun/jce/vanilla/local_policy.jar
    lrwxrwxrwx 1 root root 68 2008-08-24 10:56 ./jce_1.6.0_sun_us_export_policy -> /usr/lib/jvm-private/java-1_6_0-sun/jce/vanilla/US_export_policy.jar
    lrwxrwxrwx 1 root root 40 2008-08-24 10:58 ./jconsole -> /usr/lib/jvm/java-1.6.0-sun/bin/jconsole
    lrwxrwxrwx 1 root root 48 2008-08-24 10:58 ./jconsole.1.gz -> /usr/share/man/man1/jconsole-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./jdb -> /usr/lib/jvm/java-1.6.0-sun/bin/jdb
    lrwxrwxrwx 1 root root 43 2008-08-24 10:58 ./jdb.1.gz -> /usr/share/man/man1/jdb-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./jinfo -> /usr/lib/jvm/java-1.6.0-sun/bin/jinfo
    lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./jinfo.1.gz -> /usr/share/man/man1/jinfo-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 36 2008-08-24 10:58 ./jmap -> /usr/lib/jvm/java-1.6.0-sun/bin/jmap
    lrwxrwxrwx 1 root root 44 2008-08-24 10:58 ./jmap.1.gz -> /usr/share/man/man1/jmap-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./jps -> /usr/lib/jvm/java-1.6.0-sun/bin/jps
    lrwxrwxrwx 1 root root 43 2008-08-24 10:58 ./jps.1.gz -> /usr/share/man/man1/jps-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 26 2008-08-24 10:56 ./jre -> /usr/lib/jvm/jre-1.6.0-sun
    lrwxrwxrwx 1 root root 26 2008-08-24 10:56 ./jre_1.6.0 -> /usr/lib/jvm/jre-1.6.0-sun
    lrwxrwxrwx 1 root root 34 2008-08-24 10:56 ./jre_1.6.0_exports -> /usr/lib/jvm-exports/jre-1.6.0-sun
    lrwxrwxrwx 1 root root 34 2008-08-24 10:56 ./jre_exports -> /usr/lib/jvm-exports/jre-1.6.0-sun
    lrwxrwxrwx 1 root root 26 2008-08-24 10:56 ./jre_sun -> /usr/lib/jvm/jre-1.6.0-sun
    lrwxrwxrwx 1 root root 34 2008-08-24 10:56 ./jre_sun_exports -> /usr/lib/jvm-exports/jre-1.6.0-sun
    lrwxrwxrwx 1 root root 41 2008-08-24 10:58 ./jsadebugd -> /usr/lib/jvm/java-1.6.0-sun/bin/jsadebugd
    lrwxrwxrwx 1 root root 49 2008-08-24 10:58 ./jsadebugd.1.gz -> /usr/share/man/man1/jsadebugd-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 38 2008-08-24 10:58 ./jstack -> /usr/lib/jvm/java-1.6.0-sun/bin/jstack
    lrwxrwxrwx 1 root root 46 2008-08-24 10:58 ./jstack.1.gz -> /usr/share/man/man1/jstack-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./jstat -> /usr/lib/jvm/java-1.6.0-sun/bin/jstat
    lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./jstat.1.gz -> /usr/share/man/man1/jstat-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 38 2008-08-24 10:58 ./jstatd -> /usr/lib/jvm/java-1.6.0-sun/bin/jstatd
    lrwxrwxrwx 1 root root 46 2008-08-24 10:58 ./jstatd.1.gz -> /usr/share/man/man1/jstatd-java-1_6_0-sun.1.gz
    lrwxrwxrwx 1 root root 49 2008-08-24 10:58 ./jvisualvm.1.gz -> /usr/share/man/man1/jvisualvm-java-1_6_0-sun.1.gz

  2. #2
    ab@novell.com NNTP User

    Default Re: Installing a new java version in opensuse 11

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    You may find /usr/sbin/update-alternatives useful.

    Good luck.





    jdoklovic wrote:
    > Hi,
    >
    > I want to upgrade my jre/jdk on opsensuse 11.
    > Currently I have jdk6u7 installed, and I'd like to upgrade it to
    > jdk6u10.
    >
    > Doesn't matter to me if I use the sun rpm or simply extract it in my
    > home directory... my problem is all the symlinks.
    >
    > Suse seems to use /usr/bin/java which is a symlink to
    > /etc/alternatives/java, which is in turn a symlink to
    > /usr/lib/jvm/jre-1.6.0-sun/bin/java
    >
    > I can easily change the /etc/alternatives/java link to point to my new
    > jre, however, looking at the other stuff in /etc/alternatives/ there are
    > a lot of other java related links.
    >
    > Do I need to update all of them?
    >
    > (here's what I mean by a lot)
    > lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./jar ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jar
    > lrwxrwxrwx 1 root root 43 2008-08-24 10:58 ./jar.1.gz ->
    > /usr/share/man/man1/jar-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 41 2008-08-24 10:58 ./jarsigner ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jarsigner
    > lrwxrwxrwx 1 root root 49 2008-08-24 10:58 ./jarsigner.1.gz ->
    > /usr/share/man/man1/jarsigner-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 35 2008-08-24 10:56 ./java ->
    > /usr/lib/jvm/jre-1.6.0-sun/bin/java
    > lrwxrwxrwx 1 root root 44 2008-08-24 10:56 ./java.1.gz ->
    > /usr/share/man/man1/java-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./javac ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/javac
    > lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./javac.1.gz ->
    > /usr/share/man/man1/javac-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 39 2008-08-24 10:58 ./javadoc ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/javadoc
    > lrwxrwxrwx 1 root root 47 2008-08-24 10:58 ./javadoc.1.gz ->
    > /usr/share/man/man1/javadoc-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./javah ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/javah
    > lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./javah.1.gz ->
    > /usr/share/man/man1/javah-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./javap ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/javap
    > lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./javap.1.gz ->
    > /usr/share/man/man1/javap-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 77 2008-08-24 10:58 ./javaplugin ->
    > /usr/lib/jvm/java-1.6.0-sun-1.6.0.u7/jre/plugin/i386/ns7/libjavaplugin_oji.so
    > lrwxrwxrwx 1 root root 27 2008-08-24 10:58 ./java_sdk ->
    > /usr/lib/jvm/java-1.6.0-sun
    > lrwxrwxrwx 1 root root 27 2008-08-24 10:58 ./java_sdk_1.6.0 ->
    > /usr/lib/jvm/java-1.6.0-sun
    > lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./java_sdk_1.6.0_exports ->
    > /usr/lib/jvm-exports/java-1.6.0-sun
    > lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./java_sdk_exports ->
    > /usr/lib/jvm-exports/java-1.6.0-sun
    > lrwxrwxrwx 1 root root 27 2008-08-24 10:58 ./java_sdk_sun ->
    > /usr/lib/jvm/java-1.6.0-sun
    > lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./java_sdk_sun_exports ->
    > /usr/lib/jvm-exports/java-1.6.0-sun
    > lrwxrwxrwx 1 root root 37 2008-08-24 10:56 ./javaws ->
    > /usr/lib/jvm/jre-1.6.0-sun/bin/javaws
    > lrwxrwxrwx 1 root root 46 2008-08-24 10:56 ./javaws.1.gz ->
    > /usr/share/man/man1/javaws-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 29 2008-06-28 04:12 ./jaxp_parser_impl ->
    > /usr/share/java/xerces-j2.jar
    > lrwxrwxrwx 1 root root 28 2008-06-28 04:15 ./jaxp_transform_impl ->
    > /usr/share/java/xalan-j2.jar
    > lrwxrwxrwx 1 root root 64 2008-08-24 10:56 ./jce_1.6.0_sun_local_policy
    > -> /usr/lib/jvm-private/java-1_6_0-sun/jce/vanilla/local_policy.jar
    > lrwxrwxrwx 1 root root 68 2008-08-24 10:56
    > ./jce_1.6.0_sun_us_export_policy ->
    > /usr/lib/jvm-private/java-1_6_0-sun/jce/vanilla/US_export_policy.jar
    > lrwxrwxrwx 1 root root 40 2008-08-24 10:58 ./jconsole ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jconsole
    > lrwxrwxrwx 1 root root 48 2008-08-24 10:58 ./jconsole.1.gz ->
    > /usr/share/man/man1/jconsole-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./jdb ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jdb
    > lrwxrwxrwx 1 root root 43 2008-08-24 10:58 ./jdb.1.gz ->
    > /usr/share/man/man1/jdb-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./jinfo ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jinfo
    > lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./jinfo.1.gz ->
    > /usr/share/man/man1/jinfo-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 36 2008-08-24 10:58 ./jmap ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jmap
    > lrwxrwxrwx 1 root root 44 2008-08-24 10:58 ./jmap.1.gz ->
    > /usr/share/man/man1/jmap-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 35 2008-08-24 10:58 ./jps ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jps
    > lrwxrwxrwx 1 root root 43 2008-08-24 10:58 ./jps.1.gz ->
    > /usr/share/man/man1/jps-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 26 2008-08-24 10:56 ./jre ->
    > /usr/lib/jvm/jre-1.6.0-sun
    > lrwxrwxrwx 1 root root 26 2008-08-24 10:56 ./jre_1.6.0 ->
    > /usr/lib/jvm/jre-1.6.0-sun
    > lrwxrwxrwx 1 root root 34 2008-08-24 10:56 ./jre_1.6.0_exports ->
    > /usr/lib/jvm-exports/jre-1.6.0-sun
    > lrwxrwxrwx 1 root root 34 2008-08-24 10:56 ./jre_exports ->
    > /usr/lib/jvm-exports/jre-1.6.0-sun
    > lrwxrwxrwx 1 root root 26 2008-08-24 10:56 ./jre_sun ->
    > /usr/lib/jvm/jre-1.6.0-sun
    > lrwxrwxrwx 1 root root 34 2008-08-24 10:56 ./jre_sun_exports ->
    > /usr/lib/jvm-exports/jre-1.6.0-sun
    > lrwxrwxrwx 1 root root 41 2008-08-24 10:58 ./jsadebugd ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jsadebugd
    > lrwxrwxrwx 1 root root 49 2008-08-24 10:58 ./jsadebugd.1.gz ->
    > /usr/share/man/man1/jsadebugd-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 38 2008-08-24 10:58 ./jstack ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jstack
    > lrwxrwxrwx 1 root root 46 2008-08-24 10:58 ./jstack.1.gz ->
    > /usr/share/man/man1/jstack-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 37 2008-08-24 10:58 ./jstat ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jstat
    > lrwxrwxrwx 1 root root 45 2008-08-24 10:58 ./jstat.1.gz ->
    > /usr/share/man/man1/jstat-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 38 2008-08-24 10:58 ./jstatd ->
    > /usr/lib/jvm/java-1.6.0-sun/bin/jstatd
    > lrwxrwxrwx 1 root root 46 2008-08-24 10:58 ./jstatd.1.gz ->
    > /usr/share/man/man1/jstatd-java-1_6_0-sun.1.gz
    > lrwxrwxrwx 1 root root 49 2008-08-24 10:58 ./jvisualvm.1.gz ->
    > /usr/share/man/man1/jvisualvm-java-1_6_0-sun.1.gz
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFI17Qx3s42bA80+9kRAo/PAKCGQlK5FdVmaXzIqR7aKfQXEYR+dQCdFu5Z
    +iB3H6g5ZImYzF32UPDD2tw=
    =G14j
    -----END PGP SIGNATURE-----

  3. #3
    jdoklovic NNTP User

    Default Re: Installing a new java version in opensuse 11

    Thanks...
    looked into update-alternatives and was able to get java successfully updated. It wasn't fun though.

    Here's what I did:
    ran the rpm install for the new java version.
    using update-alternatives --display I grabbed the list for java, javac, and javaplugin and then modified them so I could install the new versions.

    java
    ----------
    update-alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_10/bin/java 300 \
    --slave /usr/share/man/man1/keytool.1.gz keytool.1.gz /usr/java/jdk1.6.0_10/man/man1/keytool.1 \
    --slave /usr/share/man/man1/rmid.1.gz rmid.1.gz /usr/java/jdk1.6.0_10/man/man1/rmid.1 \
    --slave /usr/share/man/man1/orbd.1.gz orbd.1.gz /usr/java/jdk1.6.0_10/man/man1/orbd.1 \
    --slave /usr/share/man/man1/servertool.1.gz servertool.1.gz /usr/java/jdk1.6.0_10/man/man1/servertool.1 \
    --slave /usr/share/man/man1/javaws.1.gz javaws.1.gz /usr/java/jdk1.6.0_10/man/man1/javaws.1 \
    --slave /usr/share/man/man1/rmiregistry.1.gz rmiregistry.1.gz /usr/java/jdk1.6.0_10/man/man1/rmiregistry.1 \
    --slave /usr/share/man/man1/tnameserv.1.gz tnameserv.1.gz /usr/java/jdk1.6.0_10/man/man1/tnameserv.1 \
    --slave /usr/share/man/man1/java.1.gz java.1.gz /usr/java/jdk1.6.0_10/man/man1/java.1 \
    --slave /usr/share/man/man1/policytool.1.gz policytool.1.gz /usr/java/jdk1.6.0_10/man/man1/policytool.1 \
    --slave /usr/bin/rmid rmid /usr/java/jdk1.6.0_10/bin/rmid \
    --slave /usr/bin/javaws javaws /usr/java/jdk1.6.0_10/bin/javaws \
    --slave /usr/bin/policytool policytool /usr/java/jdk1.6.0_10/bin/policytool \
    --slave /usr/bin/orbd orbd /usr/java/jdk1.6.0_10/bin/orbd \
    --slave /usr/bin/rmiregistry rmiregistry /usr/java/jdk1.6.0_10/bin/rmiregistry \
    --slave /usr/bin/tnamesrv tnamesrv /usr/java/jdk1.6.0_10/bin/tnamesrv \
    --slave /usr/bin/ControlPanel ControlPanel /usr/java/jdk1.6.0_10/bin/ControlPanel \
    --slave /usr/bin/keytool keytool /usr/java/jdk1.6.0_10/bin/keytool \
    --slave /usr/bin/servertool servertool /usr/java/jdk1.6.0_10/bin/servertool \
    --slave /usr/lib/jvm/jre jre /usr/java/jdk1.6.0_10/jre


    javac
    -----------
    update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_10/bin/javac 300 \
    --slave /usr/share/man/man1/pack200.1.gz pack200.1.gz /usr/java/jdk1.6.0_10/man/man1/pack200.1 \
    --slave /usr/share/man/man1/jarsigner.1.gz jarsigner.1.gz /usr/java/jdk1.6.0_10/man/man1/jarsigner.1 \
    --slave /usr/share/man/man1/unpack200.1.gz unpack200.1.gz /usr/java/jdk1.6.0_10/man/man1/unpack200.1 \
    --slave /usr/share/man/man1/javap.1.gz javap.1.gz /usr/java/jdk1.6.0_10/man/man1/javap.1 \
    --slave /usr/share/man/man1/idlj.1.gz idlj.1.gz /usr/java/jdk1.6.0_10/man/man1/idlj.1 \
    --slave /usr/share/man/man1/jinfo.1.gz jinfo.1.gz /usr/java/jdk1.6.0_10/man/man1/jinfo.1 \
    --slave /usr/share/man/man1/jstat.1.gz jstat.1.gz /usr/java/jdk1.6.0_10/man/man1/jstat.1 \
    --slave /usr/share/man/man1/jstatd.1.gz jstatd.1.gz /usr/java/jdk1.6.0_10/man/man1/jstatd.1 \
    --slave /usr/share/man/man1/apt.1.gz apt.1.gz /usr/java/jdk1.6.0_10/man/man1/apt.1 \
    --slave /usr/share/man/man1/serialver.1.gz serialver.1.gz /usr/java/jdk1.6.0_10/man/man1/serialver.1 \
    --slave /usr/share/man/man1/javadoc.1.gz javadoc.1.gz /usr/java/jdk1.6.0_10/man/man1/javadoc.1 \
    --slave /usr/share/man/man1/native2ascii.1.gz native2ascii.1.gz /usr/java/jdk1.6.0_10/man/man1/native2ascii.1 \
    --slave /usr/share/man/man1/jconsole.1.gz jconsole.1.gz /usr/java/jdk1.6.0_10/man/man1/jconsole.1 \
    --slave /usr/share/man/man1/rmic.1.gz rmic.1.gz /usr/java/jdk1.6.0_10/man/man1/rmic.1 \
    --slave /usr/share/man/man1/jstack.1.gz jstack.1.gz /usr/java/jdk1.6.0_10/man/man1/jstack.1 \
    --slave /usr/share/man/man1/jmap.1.gz jmap.1.gz /usr/java/jdk1.6.0_10/man/man1/jmap.1 \
    --slave /usr/share/man/man1/appletviewer.1.gz appletviewer.1.gz /usr/java/jdk1.6.0_10/man/man1/appletviewer.1 \
    --slave /usr/share/man/man1/jps.1.gz jps.1.gz /usr/java/jdk1.6.0_10/man/man1/jps.1 \
    --slave /usr/share/man/man1/jsadebugd.1.gz jsadebugd.1.gz /usr/java/jdk1.6.0_10/man/man1/jsadebugd.1 \
    --slave /usr/share/man/man1/javah.1.gz javah.1.gz /usr/java/jdk1.6.0_10/man/man1/javah.1 \
    --slave /usr/share/man/man1/jar.1.gz jar.1.gz /usr/java/jdk1.6.0_10/man/man1/jar.1 \
    --slave /usr/share/man/man1/jdb.1.gz jdb.1.gz /usr/java/jdk1.6.0_10/man/man1/jdb.1 \
    --slave /usr/share/man/man1/javac.1.gz javac.1.gz /usr/java/jdk1.6.0_10/man/man1/javac.1 \
    --slave /usr/share/man/man1/extcheck.1.gz extcheck.1.gz /usr/java/jdk1.6.0_10/man/man1/extcheck.1 \
    --slave /usr/share/man/man1/jvisualvm.1.gz jvisualvm.1.gz /usr/java/jdk1.6.0_10/man/man1/jvisualvm.1 \
    --slave /usr/bin/javah javah /usr/java/jdk1.6.0_10/bin/javah \
    --slave /usr/bin/jinfo jinfo /usr/java/jdk1.6.0_10/bin/jinfo \
    --slave /usr/bin/jconsole jconsole /usr/java/jdk1.6.0_10/bin/jconsole \
    --slave /usr/bin/apt apt /usr/java/jdk1.6.0_10/bin/apt \
    --slave /usr/bin/native2ascii native2ascii /usr/java/jdk1.6.0_10/bin/native2ascii \
    --slave /usr/bin/jdb jdb /usr/java/jdk1.6.0_10/bin/jdb \
    --slave /usr/bin/extcheck extcheck /usr/java/jdk1.6.0_10/bin/extcheck \
    --slave /usr/bin/pack200 pack200 /usr/java/jdk1.6.0_10/bin/pack200 \
    --slave /usr/bin/javadoc javadoc /usr/java/jdk1.6.0_10/bin/javadoc \
    --slave /usr/bin/serialver serialver /usr/java/jdk1.6.0_10/bin/serialver \
    --slave /usr/bin/jarsigner jarsigner /usr/java/jdk1.6.0_10/bin/jarsigner \
    --slave /usr/bin/jmap jmap /usr/java/jdk1.6.0_10/bin/jmap \
    --slave /usr/bin/jps jps /usr/java/jdk1.6.0_10/bin/jps \
    --slave /usr/bin/jstat jstat /usr/java/jdk1.6.0_10/bin/jstat \
    --slave /usr/bin/rmic rmic /usr/java/jdk1.6.0_10/bin/rmic \
    --slave /usr/bin/jstatd jstatd /usr/java/jdk1.6.0_10/bin/jstatd \
    --slave /usr/bin/unpack200 unpack200 /usr/java/jdk1.6.0_10/bin/unpack200 \
    --slave /usr/bin/HtmlConverter HtmlConverter /usr/java/jdk1.6.0_10/bin/HtmlConverter \
    --slave /usr/bin/jstack jstack /usr/java/jdk1.6.0_10/bin/jstack \
    --slave /usr/bin/appletviewer appletviewer /usr/java/jdk1.6.0_10/bin/appletviewer \
    --slave /usr/bin/jsadebugd jsadebugd /usr/java/jdk1.6.0_10/bin/jsadebugd \
    --slave /usr/bin/jar jar /usr/java/jdk1.6.0_10/bin/jar \
    --slave /usr/bin/javap javap /usr/java/jdk1.6.0_10/bin/javap \
    --slave /usr/bin/idlj idlj /usr/java/jdk1.6.0_10/bin/idlj


    javaplugin
    ---------------
    update-alternatives --install /usr/lib/browser-plugins/javaplugin.so javaplugin /usr/java/jdk1.6.0_10/jre/plugin/i386/ns7/libjavaplugin_oji.so 300


    Then for each one, I ran update-alternatives --config, and chose the new versions. Everything seems to work and is using the new java version now.

    - Jonathan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •