Jasperexport funktioniert in Eclipse aber nicht bei normalem Programmstart

Tobias_Steidle

Grünschnabel
Hallo Zusammen,
ich habe folgendes Problem.
Wenn ich aus Eclipse heraus meine Applikation starte, funktioniert der PDF-Export mit JasperReports ohne Probleme. Starte ich aber die Anwendung von der Kommandozeile aus, erhalte ich folgenden Fehler:

Code:
C:\Programme\Client\>C:\Programme\Java\jre1.5.0_08\bin\java -Xms40M -Xmx256M
-jar Client.jar
Exception occurred during event dispatching:
java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClass(JRClassLoade
r.java:342)
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClassFromBytes(JRC
lassLoader.java:243)
        at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadEvaluat
or(JRAbstractJavaCompiler.java:76)
        at net.sf.jasperreports.engine.design.JRAbstractCompiler.loadEvaluator(J
RAbstractCompiler.java:320)
        at net.sf.jasperreports.engine.JasperCompileManager.loadEvaluator(Jasper
CompileManager.java:245)
        at net.sf.jasperreports.engine.fill.JRFillDataset.createCalculator(JRFil
lDataset.java:411)
        at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.jav
a:418)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFi
ller.java:77)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFi
ller.java:59)
        at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:
147)
        at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83
)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:601)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.Dialog$1.run(Unknown Source)
        at java.awt.Dialog$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Unknown Source)
        at java.awt.Component.show(Unknown Source)
        at java.awt.Component.setVisible(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Es wird auch in Eclipse die JRE jre1.5.0_08 verwendet.
In beiden Fällen die selben Libs, es gibt soweit ich feststellen kann keinen Unterschied.
Weiß vielleicht jemand von euch einen Rat oder kann mit mir evtl. noch Fehlerquellen nennen?

Danke
Tobias
 
Zurück