Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Ravi Sathish
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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(
at sun.awt.X11.XFramePeer.setIconImage(
at sun.awt.X11.XFramePeer.postInit(
at sun.awt.X11.XBaseWindow.init(
at java.awt.Frame.addNotify(
at nirvana.srb.javaAdmin.SrbAdmin.main(

Tried printing out Screen Size
width: 140

[ October 13, 2005: Message edited by: Ravi Sathish ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!