简体   繁体   English

Java 11 Jasper 报告编译错误:org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException

[英]Java 11 Jasper report compilation error: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException

Getting following error when jasper report compile in Java 11:在 Java 11 中编译 jasper 报告时出现以下错误:

ERROR [net.sf.jasperreports.engine.design.JRJdtCompiler] (default task-94) Compilation error: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException [Server:ltchie-node-00] at deployment.ltchie.ear//org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.(ClassFileReader.java:329) [Server:ltchie-node-00] at deployment.ltchie.ear//net.sf.jasperreports.engine.design.JRJdtCompiler$1.findType(JRJdtCompiler.java:251) [Server:ltchie-node-00] at deployment.ltchie.ear//net.sf.jasperreports.engine.design.JRJdtCompiler$1.findType(JRJdtCompiler.java:187) [Server:ltchie-node-00] at deployment.ltchie.ear//org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:97)错误 [net.sf.jasperreports.engine.design.JRJdtCompiler](默认任务 94)编译错误:org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException [Server:ltchie-node-00] at deployment.ltchie。 ear//org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.(ClassFileReader.java:329) [Server:ltchie-node-00] at deployment.ltchie.ear//net.sf.jasperreports.engine.design .JRJdtCompiler$1.findType(JRJdtCompiler.java:251) [Server:ltchie-node-00] at deployment.ltchie.ear//net.sf.jasperreports.engine.design.JRJdtCompiler$1.findType(JRJdtCompiler.java:187) [Server:ltchie-node-00] at deployment.ltchie.ear//org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:97)

We are using jasperreports-javaflow-6.5.1.jar.我们正在使用 jasperreports-javaflow-6.5.1.jar。

org.tolven.library.jboss-rules.core-3.2.3.v_686_R32x.jar, assuming that it's the same file as the one here , seems to be a very old ( released in 2007 ) JDT compiler implementation that's not able to read classes compiled for Java 11. org.tolven.library.jboss-rules.core-3.2.3.v_686_R32x.jar,假设它与这里的文件相同,似乎是一个非常旧的( 2007年发布)JDT编译器实现,无法读取为 Java 11 编译的类。

For Java 11 you'll need a more recent JDT version, for instance 4.4.2 .对于 Java 11,您需要更新的 JDT 版本,例如4.4.2 But then there's a risk that the code that depends on the 3.2.3 JDT implementation no longer works with the more recent JDT version, in which case I don't know what you can do.但是存在依赖于 3.2.3 JDT 实现的代码不再适用于较新的 JDT 版本的风险,在这种情况下,我不知道您可以做什么。

You might also need to upgrade the JasperReports version, according to the change log support for Java 11 has been introduced in 6.8.0.根据 6.8.0 中引入的对 Java 11 的更改日志支持,您可能还需要升级 JasperReports 版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 编译错误:org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException - Compilation error: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException 内部编译器错误: org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.Z93F746A07423BF21C) 处的 java.lang.NullPointerException - Internal compiler error: java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:148) 什么是org / eclipse / jdt / internal / compiler软件包? - What is org/eclipse/jdt/internal/compiler package for? 出现意外错误(类型=内部服务器错误,状态=500)。 org/eclipse/jdt/internal/compiler/env/INameEnvironment - There was an unexpected error (type=Internal Server Error, status=500). org/eclipse/jdt/internal/compiler/env/INameEnvironment org.eclipse.jdt.internal.compiler.codegen.CodeStream.newArray中的java.lang.NullPointerException - java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.codegen.CodeStream.newArray java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult - java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult Eclipse中的错误? org.eclipse.jdt.internal.compiler.lookup.ArrayBinding无法转换为org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding - Bug in Eclipse? org.eclipse.jdt.internal.compiler.lookup.ArrayBinding cannot be cast to org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding 相当于org.eclipse.jdt.internal.compiler.ast中的NodeFinder? - NodeFinder equivalent in org.eclipse.jdt.internal.compiler.ast? Spring - 在“初始化Java工具”期间发生内部错误。 组织/日蚀/ JDT /核心/搜索/是searchPattern - Spring - An internal error occurred during: “Initializing Java Tooling”. org/eclipse/jdt/core/search/SearchPattern 跟踪Eclipse JDT编译器错误消息(IProblem) - Tracking Eclipse JDT Compiler Error Messages (IProblem)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM