我用eclipse birt编写了一个显示报表的程序,当我运行源代码或runnable jar时,它运行得很好。但是在使用jar2exe创建了exe文件之后,我在显示报告时遇到了这个错误,它将无法工作。似乎有些dll库无法访问,但我不知道它们是什么:
2021-04-19 10:58:59,928 23201 [ Thread-1] ERROR - (AnalyzeResult.java:367).createReport -> org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org. .report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2380)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:191)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
at com.example.reporting.view.results.analysis.AnalyzeResult.createReport(AnalyzeResult.java:361)
at com.example.reporting.model.actions.init.ReportSystemInitialize.initBirt(ReportSystemInitialize.java:169)
at com.example.reporting.view.results.init.ReportSystemInitializeResult$1.execute(ReportSystemInitializeResult.java:27)
at mostruts.controller.TaskManager$7.run(TaskManager.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsatisfiedLinkError: no management in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at sun.management.ManagementFactoryHelper$4.run(ManagementFactoryHelper.java:451)
at sun.management.ManagementFactoryHelper$4.run(ManagementFactoryHelper.java:449)
at java.security.AccessController.doPrivileged(Native Method)
at sun.management.ManagementFactoryHelper.<clinit>(ManagementFactoryHelper.java:448)
at java.lang.management.ManagementFactory.getRuntimeMXBean(ManagementFactory.java:350)
at org.eclipse.birt.data.engine.impl.DataEngineSession.<init>(DataEngineSession.java:106)
at org.eclipse.birt.data.engine.impl.DataEngineImpl.<init>(DataEngineImpl.java:118)
at org.eclipse.birt.data.engine.impl.DataEngineFactory.createDataEngine(DataEngineFactory.java:46)
at org.eclipse.birt.data.engine.api.DataEngine.newDataEngine(DataEngine.java:189)
at org.eclipse.birt.data.engine.api.DataEngine.newDataEngine(DataEngine.java:167)
at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.<init>(DataRequestSessionImpl.java:188)
at org.eclipse.birt.report.data.adapter.impl.DataAdapterFactory.createSession(DataAdapterFactory.java:30)
at org.eclipse.birt.report.data.adapter.api.DataRequestSession.newSession(DataRequestSession.java:85)
at org.eclipse.birt.report.data.adapter.api.DataRequestSession.newSession(DataRequestSession.java:64)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.<init>(DteDataEngine.java:104)
at org.eclipse.birt.report.engine.data.DataEngineFactory.createDataEngine(DataEngineFactory.java:115)
at org.eclipse.birt.report.engine.executor.ExecutionContext.openDataEngine(ExecutionContext.java:891)
at org.eclipse.birt.report.engine.executor.ExecutionContext.getDataEngine(ExecutionContext.java:908)
at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:122)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciateReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportExecutor.execute(LocalizedReportExecutor.java:61)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:179)
... 8 more
暂无答案!
目前还没有任何答案,快来回答吧!