Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6582346
Votes 0
Synopsis javaw launcher does not display MessageBox after change to the resource files.
Category java:classes_awt
Reported Against
Release Fixed 7(b36)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 6359035 , 6596475
Submit Date 18-JUL-2007
Description
The javaw launcher no longer display MessageBox, after adding java_manifest file to the
java resource file on Windows. See comments for analysis.
Posted Date : 2007-07-18 20:49:09.0

To reproduce the problem simply use javaw on a non-existent jar example:
% c:/blah/javaw -jar some_non_existing.jar
Posted Date : 2007-07-18 21:28:19.0
Work Around
The only workaround is for customers to retry the operation with java.exe.
Evaluation
The manifest file was added as a part of the fix for 6359035 (Apply WinXP visual styles to AWT native dialogs). It enables comctl32.dll version 6 to be used in runtime, probably, this new version of comctl32 has its own MessageBox routines?...
Posted Date : 2007-07-19 09:12:36.0

After a short investigation, I found that inserting a call to ::InitCommonCotrols() before ::MessageBox() solves the problem. To be able to call ::InitCommonControls() we need to include <commctrl.h> header file and link java launcher with comctl32.lib.

The proposed changes above should be done for javaw (and probably other executives), and at the same time the call to ::InitCommonControls() should be inserted to awt.dll. I hope two calls to this method are OK.
Posted Date : 2007-07-19 09:40:40.0

Using Windows Vista, jdk7 b19 the problem is not reproducible for me. The message box is shown when non-existing jar is specified.
Posted Date : 2007-12-06 10:31:21.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang