wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes IllegalArgumentException: Width (0) and height (0); Java 1.5 problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "IllegalArgumentException: Width (0) and height (0); Java 1.5 problem" Watch "IllegalArgumentException: Width (0) and height (0); Java 1.5 problem" New topic

IllegalArgumentException: Width (0) and height (0); Java 1.5 problem

Ravi Sathish
Ranch Hand

Joined: Feb 26, 2002
Posts: 131

I have code base which works alright on 32 bit JVM... But I'm hitting IllegalArguement exception when trying to run the same on 64 bit JVM. Try to search fixes/solutions on the web no success whatsoever.

I would dearly appreciate any help/suggestions/work-arounds.


javaVersion : 1.5.0_03
javaVMName : Java HotSpot(TM) 64-Bit Server VM

Exception in thread "main" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
at sun.awt.X11.XFramePeer.setIconImage(XFramePeer.java:217)
at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:75)
at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:117)
at java.awt.Frame.addNotify(Frame.java:491)
at java.awt.Window.show(Window.java:513)
at nirvana.srb.javaAdmin.SrbAdmin.main(SrbAdmin.java:963)

Tried printing out Screen Size
width: 140

[ October 13, 2005: Message edited by: Ravi Sathish ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: IllegalArgumentException: Width (0) and height (0); Java 1.5 problem
Similar Threads
Play video file frame by frame
Problem with JDialog and setSize()
Painting with a custom JComponent
Frame.setIconImage() causes problems in Java1.5 on remote access; works fine in 1.4
Trying to extend and add a panel to the frame created in the parent class