JDK-4312532 : (launcher) javaw -jar should show a popup window if cannot start
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_98
  • CPU: x86
  • Submitted: 2000-02-14
  • Updated: 2007-07-16
  • Resolved: 2007-07-16
Related Reports
Relates :  
Relates :  
Relates :  
Description
Name: skT88420			Date: 02/14/2000


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

This bug is related to the bug #4232896 but not the same.

Since the JDK1.3RC1 The Java Virtual Machine Launcher show a pop up dialog when
you do "javaw pkg.noexits". 
But if you type "javaw -jar" that should generate an error, you have no dialog.

Here is the cases to treat (I'm not an English native speaker)
javaw -jar noexits.jar : should show a dialog "Could not find the jar file.
  Program will exit!"

in the jre\lib directory : javaw -jar rt.jar or double-click on this file in
explorer on the  rt.jar : should show a dialog "Could not find the Main-Class in
the manifest. Program will exit!" or  something more understable for the normal
Windows users.

E-mail me if you want more informations.
(Review ID: 101222) 
======================================================================
###@###.### 2004-11-11 22:27:28 GMT

Comments
EVALUATION This bug has been fixed with JDK 1.6, a dialog does appear if you do javaw -jar some_non_existent.jar or double click on a JAR without a non-executable jar (without a main-class attribute). Closing it as not-reproducible, but it is indeed fixed by a non-related effort.
16-07-2007

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon
14-06-2004

PUBLIC COMMENTS .
10-06-2004

EVALUATION The javaw command is identical to java, except that with javaw there is no associated console window. Use javaw when you don't want a command prompt window to appear. The javaw launcher will, however, display a dialog box with error information if a launch fails for some reason. This is re-producible on JDK 1.4 Yes, it is reasonable (and consistent with the documentation) for javaw to pop open a window to report errors. ###@###.### 2001-11-01 This is in fact a bug and not a RFE. If we show a Window in one case, we should show it in all cases. ###@###.### 2002-10-25 Unexpected implementation complications; deferring until after Tiger. ###@###.### 2004-01-13
25-10-2002