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

Java launcher needs more helpful error messages

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Future Project
    • Icon: P5 P5
    • None
    • 6
    • tools
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      If the launcher (java.exe, javaw.exe) encounters an error that could be fixed by reinstalling Java (e.g. missing files, missing registry keys) it should say so in the error messages.

      For example, if rt.jar is missing javaw.exe will fail silently. Apparently jvm.dll calls exit(), because it fails to initialize.

      One cause for "losing" rt.jar can be Windows System Restore (WSR): If the system is restored to a point prior to uninstalling a JDK/JRE for example this will result in a broken install because WSR does not restore jar files by default.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just delete <install dir>/lib/rt.jar
      -or-
      uninstall your JDK/JRE and then use WSR to restore your system using the restore point the uninstaller created

      then try to execute a jar file using javaw, either by double-clicking a application jar or from a command line.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      An error message.
      ACTUAL -
      No error message.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      When runing java.exe:
      Error occurred during initialization of VM
      java/lang/NoClassDefFoundError: java/lang/Object

      JUSTIFICATION :
      A more informative error messages makes it easier for less experienced users to decide how to fix a problem.

            ksrini Kumar Srinivasan
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: