I am encountering bugs when running my application using the Java launcher, I think because Vista is running the launcher in XP compatibility mode and the JRE doesn't function properly in that scenario. I discovered the problem because my application opens a JFileChooser when the user attempts to save a file. This results in an exception being thrown when run in the launcher, but it works fine from the command line if I use "java -jar". These Java bugs may be relevant:
http://bugs.sun.com/bugdatabase/view_bu ... id=6449933
http://bugs.sun.com/bugdatabase/view_bu ... id=6474738
If I right click on the launcher and go to "Properties >> Compatibility", there is no indication that any compatibility mode is being used. However, when I run the application using the launcher, I get the following as system properties:
Code: Select all
os.name: Windows XP
os.version: 5.1
sun.os.patch.level: Service Pack 2
java.runtime.version: 1.6.0_01-b06
Code: Select all
os.name: Windows Vista
os.version: 6.0
sun.os.patch.level:
java.runtime.version: 1.6.0_01-b06
Thanks,
- Tim Macinta
Code: Select all
java.lang.ArrayIndexOutOfBoundsException: 3184
at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Unknown Source)
at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
at sun.awt.shell.ShellFolder.get(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(Unknown Source)
at javax.swing.UIDefaults.getFromHashtable(Unknown Source)
at javax.swing.UIDefaults.get(Unknown Source)
at javax.swing.MultiUIDefaults.get(Unknown Source)
at javax.swing.UIDefaults.getIcon(Unknown Source)
at javax.swing.UIManager.getIcon(Unknown Source)
at javax.swing.plaf.basic.BasicFileChooserUI.installIcons(Unknown Source)
at javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(Unknown Source)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.swing.JFileChooser.updateUI(Unknown Source)
at javax.swing.JFileChooser.setup(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at com.thinkingmaps.custom.academic.ui.action.FileBase.saveWorkbookAs(FileBase.java:89)
at com.thinkingmaps.custom.academic.ui.action.FileSaveAs.doAction(FileSaveAs.java:36)
at com.thinkingmaps.custom.academic.ui.action.ActionBase.actionPerformed(ActionBase.java:279)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
FOLLOW US
Get the latest news in Application Packaging