Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » ExceptionInInitializerError when creating a wizard
ExceptionInInitializerError when creating a wizard [message #173351] Sat, 14 August 2004 09:02
Eclipse UserFriend
Originally posted by: sydr1.t2.technion.ac.il

I'm a begginer developer and my goal is to create a wizard. I read all the
documentation about creating a wizard and found your examples very
helpful. Yet i have a serious problem. Let myWizard be my wizard, extends
Wizard. I've added some pages and i'm trying to open it directly from my
main function. In main class, the first line is:

MyWizard wizard = new MyWizard();

The problem:
In the first line, when trying to instancaite MyWizard, I get an exception
claiming that the imageRegistry is null!

Here is the stack trace:

java.lang.ExceptionInInitializerError
at main.Main.main(Main.java:22)
Caused by: org.eclipse.jface.util.Assert$AssertionFailedException: null
argument;
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:139)
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:116)
at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:77)
at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:65)
at
org.eclipse.jface.resource.JFaceResources.getImageRegistry(J FaceResources.java:255)
at org.eclipse.jface.wizard.Wizard.<clinit>(Wizard.java:64)
... 1 more
Exception in thread "main"

Thanks a head.
Max.
Previous Topic:Insert Text @ specific location
Next Topic:It remembered my decision....
Goto Forum:
  


Current Time: Wed Jul 02 20:27:03 EDT 2025

Powered by FUDForum. Page generated in 0.03357 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top