Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6308262

java.home, java.runtime.version pointing to old jre values even after browser jre is changed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 6
    • 6
    • deploy
    • generic
    • generic

      JDK-Info:
      ---------
      java version "1.6.0-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b46)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b46, mixed mode)


      System-Info:
      ------------
      Solaris


      Steps to Reproduce:
      -------------------
      1) Install JDK 6.0 b45
      2) Install mozilla 1.7
      3) Create the link for libjavaplugin_oji.so file under <mozilla>/plugins pointing to $jdk1.6.0/jre1.6.0/plugin/sparc/ns7/libjavaplugin_oji.so

      (ln -s /tmp/ramkumar/b45/jre1.6.0/plugin/sparc/ns7/libjavaplugin_oji.so libjavaplugin_oji.so under <mozilla>/plugins) So, now the browser jre is pointing to b45

      4) Clean cache (\rm -rf ~/.java)
      5) Launch an applet which fails to load (e.g. delete $jdk1.6.0/demo/applets/DrawTest/DrawControls.class and load $jdk1.6.0/demo/applets/DrawTest/example1.html applet)

      6) When applet fails to load, right-mouse click on the failed applet box box and click "About Java(TM)" on the popup menu

      The "About Java" dialog shows java version as "Version 1.6.0-ea (build 1.6.0-ea-b45)", which is expected.

      7) Now Install JDK 6.0 b46
      8) Exit browser and re-create link for libjavaplugin_oji.so file under <mozilla>/plugins pointing to b46 $jdk1.6.0/jre1.6.0/plugin/sparc/ns7/libjavaplugin_oji.so

      (ln -s /tmp/ramkumar/b46/jre1.6.0/plugin/sparc/ns7/libjavaplugin_oji.so libjavaplugin_oji.so under <mozilla>/plugins) So, now the browser jre is pointing to b46

      9) Launch the same applet which fails to load [Donot clear java cache]
      10) When applet fails to load, right-mouse click on the failed applet box box and click "About Java(TM)" on the popup menu

      The "About Java" dialog still shows java version as "Version 1.6.0-ea (build 1.6.0-ea-b45)" which should be b46

      Content of java console [browser jre is pointing to b46 after link to b45 is deleted and recreated, pointing to b46]:

      java.class.path = /tmp/ramkumar/b45/jre1.6.0/classes
      java.class.version = 49.0
      java.class.version.applet = true
      java.endorsed.dirs = /tmp/ramkumar/b45/jre1.6.0/lib/endorsed
      java.ext.dirs = /tmp/ramkumar/b45/jre1.6.0/lib/ext
      java.home = /tmp/ramkumar/b45/jre1.6.0
      java.io.tmpdir = /var/tmp/
      java.library.path = /tmp/ramkumar/b45/jre1.6.0/lib/sparc/client:/tmp/ramkumar/b45/jre1.6.0/lib/sparc:/test-browser/mozilla_1.7.5_sparc:..:../plugins:/usr/local/lib/mre/mre-1.7.5:/usr/lib
      java.protocol.handler.pkgs = sun.plugin.net.protocol|com.sun.deploy.net.protocol
      java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
      java.runtime.version = 1.6.0-ea-b45


      Actual Behavior:
      ----------------
      When browser jre is pointing to a different jre and java cache not cleared, browser is still showing/pointing to the old values (java.home, java.runtime.version)


      Expected Behavior:
      ------------------
      Browser jre should pick the jre, currently pointed at

            mleisunw Mike Lei (Inactive)
            rkumarsunw Ram Kumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: