unable to start platform from within a jar...
Options
Hello.
I wrote some classes using the birt enginge. Everything is fine, while I'm debugging in eclipse (I've added ALL jars from the engine folder as external jars).
Also I can run my app from the commandline via "java.exe myclass etc." (I've also added ALL jars from the engine folder to the CLASS_PATH-environment).
Now I'm trying to export may classes to a jar file (starting with "java.exe -jar myclasses.jar") and it doesn't start (I assume, the main class is found but the static main isn't invoked):
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/birt/core/framework/PlatformConfig
Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.core.framework.PlatformConfig
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
anyone any idea????
many thanks and sorry, if this is not a birt-specific problem!
I wrote some classes using the birt enginge. Everything is fine, while I'm debugging in eclipse (I've added ALL jars from the engine folder as external jars).
Also I can run my app from the commandline via "java.exe myclass etc." (I've also added ALL jars from the engine folder to the CLASS_PATH-environment).
Now I'm trying to export may classes to a jar file (starting with "java.exe -jar myclasses.jar") and it doesn't start (I assume, the main class is found but the static main isn't invoked):
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/birt/core/framework/PlatformConfig
Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.core.framework.PlatformConfig
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
anyone any idea????
many thanks and sorry, if this is not a birt-specific problem!
0
Comments
-
this is a general java issue and I found the answer at:<br />
<a class='bbc_url' href='http://fjep.sourceforge.net/'>http://fjep.sourceforge.net/</a>0
Categories
- All Categories
- 108 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 121 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management