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

JDK Dirty Install on released JDK: Windows registry and system java version prob

XMLWordPrintable

    • x86
    • windows_nt

      Dirty Install Test *** Regression from 1.3.1_04b2

      Tested on Win NT / Win XP Pro

      TEST SCENARIO
      =============

      1. Install released JDK 1.3.0_01 to default install directory
      2. Install JDK 1.3.1_09 to default install directory

      3. Verify expected behaviour.

      In netscape About>Plugins all support shown for 1.3.1_09 and applets load as
      expected making sure the 1.3.1_09 java console is shown.

      i.e. both co-exist

      4. Bring up a command prompt to check the java version strings

      -----------------------------------------------------------------------
      C:\>java -version
      java version "1.3.1_09"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_09-b01)
      Java HotSpot(TM) Client VM (build 1.3.1_09-b01, mixed mode)

      C:\>java -fullversion
      java full version "1.3.0_01"

      C:\>which java
      C:\WINNT\system32/java.exe

      -----------------------------------------------------------------------

      The full version string is showing 1.3.0_01,

      setting the PATH to the recently installed JDK shows no problem, both strings appearing as expected.

      why should the system java show this variation in strings??

      -----------------------------------------------------------------------

      C:\>set PATH=C:/jdk1.3.1_09/bin;%PATH%

      C:\>java -version
      java version "1.3.1_09"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_09-b01)
      Java HotSpot(TM) Client VM (build 1.3.1_09-b01, mixed mode)

      C:\>java -fullversion
      java full version "1.3.1_09-b01"

      C:\>which java
      C:/jdk1.3.1_09/bin/java.exe
      -----------------------------------------------------------------------

      I know that I am using the correct java version 1.3.1_09 and can successfully run a demo application.
      No problems there.


      5. Run regedit to check the registry entry value pairs.

      Entries exist for both 1.3.0_01 and 1.3.1_09 under
      HKEY_LOCAL_MACHINE>SOFTWARE>JavaSoft>Java Development Kit
      HKEY_LOCAL_MACHINE>SOFTWARE>JavaSoft>Java Plug-in
      HKEY_LOCAL_MACHINE>SOFTWARE>JavaSoft>Java Runtime Environment

      1.3 entries are present under Java Development Kit and Java Runtime Environment, with the MicroVersion being "1"
      With CurrentVersion for both being "1.3" as expected

      The 1.3.0_01 entry does not agree with this standard
      It is expected to be "0"
      but instead is "0_01"
      (This being an older JDK version - microversion standard might have been changed later,
      but I've mentioned it here because it stood out)

      6. Go to Start>Settings>Control Panel>Add/Remove Programs
         - Remove JDK/JRE 1.3.0_01

      7. Open a new netscape browser (having no other netscape windows open already)
         - go to Help>About Plugins

      Full java applet/bean support exists and 1.3.1_09 is also present as expected.
      where: application/x-java-applet;jpi-version=1.3.1_09

      8. Run regedit

      1.3 entries are *missing* under Java Development Kit and Java Runtime Environment, with the MicroVersion being "1"
      Expected CurrentVersion for both being "1.3", but entry is *missing* from regedit.


      **This is *not* a regression - I've tried the above scenario with JDK 1.3.1_05 and I see the same.

      - I expected both the system java -version and java -fullversion strings to refer to the latest 1.3.1_09 JDK (or both to 1.3.0_01 JDK, or even java not to be found in the windows system path), instead -version refers to 131_09 and -fullversion refers to 130_01 JDK
      - I did not expect the CurrentVersion entries in registry to be removed upon removal of the released JDK. - expected to keep the CurrentVersion "1.3", having 1.3.1_09b01 still on system


      ###@###.### 2003-05-28

            robm Robert Mckenna
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: