Java exception when launching Sonic Management Console using Cygwin

  • 7007566
  • 13-Jan-2011
  • 26-Apr-2012


Novell Sentinel 6.1


Java exception - java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0 while executing on Windows using Cygwin X server:

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 sun.awt.X11.XBaseWindow.<init>(
at sun.awt.X11.XWindow.<init>(


Set the following variable before you run the Sonic Management Console (

export AWT_TOOLKIT=MToolkit

After setting the environment variable you will be able to start the Sonic Management Console, and the java exception will no longer appear.

Additional Information

AWT has been re-designed on the Solaris and Linux platforms as listed in the following announcement:

XToolkit on Solaris/Linux

Feedback service temporarily unavailable. For content questions or problems, please contact Support.