Announcement

Collapse
No announcement yet.

[birt] unable to start platform from within a jar...

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [birt] unable to start platform from within a jar...

    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!

  • #2
    okay...
    this is a general java issue and I found the answer at:
    http://fjep.sourceforge.net/
    )

    Comment

    Working...
    X