NullPointerException in jar from Eclipse [message #812224] |
Sat, 03 March 2012 07:38  |
Eclipse User |
|
|
|
I create a reporting API project and it runs fine under Eclipse. I export this using the Eclipse Export/Runnable JAR comand. When I execute this JAR (java -jar myjar.jar), I get an "Exception in thread "main" java.lang.NullPointerException".
I'm new to BIRT.
BIRT is 3.7.2, Eclipse is Indigo.
The problems seems to be at the line:
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
It appears in a simple demo program also.
Can you please advise me:
1. what might be the cause of this error?
2. what is the reoommended means of getting an executable JAR file for BIRT and for executing it (the Runnable JAP seems to contain lots of possibly unnecessary JARs)?
May thanks,
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03224 seconds