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

*.jar file type registration error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0, 1.2.1, 1.3.0
    • install
    • beta2
    • x86
    • windows_nt, windows_2000
    • Not verified



      Name: tb29552 Date: 10/02/98


      1.
      a. Install JRE in a non-standard location (say,
      in F:\Program Files instead of C:\Program Files

      b. Create an "executable jar file"

      c. Double click on the jar file.

      3. Windows cannot find Program.exe. This
      program is needed for opening files of type
      'Executable Jar file'


      The installation registers .jar with the command
      line:
      C:\Program Files\JavaSoft\JRE\1.2\bin\javaw.exe -jar

      This line has two errors: i) It didn't take into
      account the actual location of the installation
      of the JRE. ii) It omits the double quote around
      the full pathname of javaw.exe, which is necessary
      to accommodate the embedded space in the full
      pathname.
      (Review ID: 36265)
      ======================================================================

      Name: yyT116575 Date: 02/26/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      The windows j2re1_3_0-win.exe installation creates the following key in the windows registry:

      HKEY_CLASSES_ROOT\jarfile\shell\open\command

      with the default value of type REG_SZ:

      <JAVA_ROOT>\bin\javaw.exe -jar %1

      As a result, if the absolute path of a *.jar file has spaces in the long folder
      names, double-clicking* the jar file will not launch the executable.

      *Note: Right-click -> Open ... won't work either the user will have to execute from the commandline.
      (Review ID: 117710)
      ======================================================================

      Name: boT120536 Date: 03/09/2001


      JRE/JDK 1.3, 1.3_01, 1.3.1-beta b15, 1.2.2
      JRE both international and US english

      Note: This bug has been submitted several times before by me and others. I now
      have additional information from news forums. It could be an OS language
      dependent problem.

      Variations of this bug report have been submitted before as bug #4232527. I
      submitted it twice and got reviews with IDs #116057 and #116898. This bug
      report is also related to bug #4178354 which reports the error with missing
      quotes around javaw.exe.

      I requested help from JDC forum "Java Archive (JAR) files" and comp.lang.java
      for English Windows, and de.comp.lang.java for German Windows. Three people
      with english OS could not reproduce the problem. Six replies in
      de.comp.lang.java reproduced the problem on German Windows. I appended their
      feedback below.

      As I invested a lot of time to help you, it would be nice, to trust me and all
      the people who reproduced the bug, that it is one :-)

        Description:
      The JDK/JRE-Installation under MS-Windows registers
      a file association for the extension 'JAR' with
      an 'open'-action that reads:
      <JRE-installtion path>\bin\javaw.exe -jar %1
      It should read:
      "<JRE-installation path>\bin\javaw.exe" -jar "%1"


      Find my request and responsed in comp.lang.java and JDC JAR forum with subject
      "[Win] Help Sun to reproduce a nasty bug"
      and in de.comp.lang.java with subject
      "[Win] Helft Sun einen l?stigen Fehler zu reproduzieren"

      Feedback from users:
      Bob Campbell <###@###.###> could not reproduce it
      "Using Windows NT 4.0 Server and jdk1.3"

      James Korman <###@###.###> could not reproduce it on
      "Windows 98 4.10.1998 English Compaq OEM"

      Andreas Schr?ter <###@###.###> reproduced it on
      WinNT 4.0 (german), JDK 1.2.2.
      and
      Win98 SE (JDK 1.2.2)

      Dirk Wellmann <###@###.###>
      "reprocuded it under W2K-German JDK 1.3"

      Roger Schuster <###@###.###>
      "Windows 98, 2. Edition and JDK 1.3.0_01"

      Andreas Senft <###@###.###>
      "NT4.0 (german), Sun JDK 1.3"

      Holger J?dicke <###@###.###>
      "Yes, with 'e:\test' it works, with 'e:\my test' it doesn't work.
      German Win NT 4 SP 4, JDK 1.3."

      The only irritating feedback is in JDC. User 'Warith' reported:
      "Yes, I have had this happen repeatedly on standard US English installations of
      Windows 9X."

      I hope to hear from you. And I hope you could just add the missing quotes.
      (Review ID: 118475)
      ======================================================================

            billyh William Harnois
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: