-
异常关于org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException20
我尝试使用eclipse jdt中的org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader 去解析字节码,
code sample:
ClassFileReader classFileReader = new ClassFileReader(bytecode, pClazzName.toCharArray(), true);
但总是会抛出org.eclipse.jdt.internal.compiler.classfmt,ClassFormatException, error 类型是'ErrTruncatedInput'.
一直找不到问题出在哪里,想请教一下出现这种异常的可能情况及解决方法。
不胜感激!
2011年10月17日 11:18
相关推荐
- org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
- javaweb中jsp问题:成功解决:org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
- maven问题:org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
- Tomcat 启动异常:org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
- org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException问题解决
相关推荐
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt....
4. **编译器库**:`org.eclipse.jdt.compiler.apt`和`org.eclipse.jdt.internal.compiler`包含了Eclipse的Java编译器实现,用于将源代码转换为AST和字节码。 5. **插件系统库**:Eclipse是基于插件的,`org.eclipse...
jasper-compiler-jdt-5.5.15.jar 是 JasperReports 库的一个关键组件,专门用于解决与编译相关的异常,特别是那些涉及到 org.eclipse.jdt.internal.compiler.ICompilerRequestor 的问题。 ICompilerRequestor 是 ...
例如,在Eclipse中,可以编辑`workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.core.prefs`文件,设置`org.eclipse.jdt.internal.compiler.defaultSourceLevel`和`org.eclipse....
2. 如果你是其他版本的IDEA,那么用压缩工具处理你的DEA安装目录下lib文件夹中的ecj-x.x.x.jar文件(名字根据IDEA版本会有所不同),将Util.class替换该jar包目录中\org\eclipse\jdt\internal\compiler\util路径下的...
3. **使用Javac或JDT进行编译**:Java提供了`javac`命令行工具进行编译,但考虑到在服务器环境中,更常见的是使用Java Development Toolkit (JDT)的API,如`org.eclipse.jdt.internal.compiler.Compiler`,因为它...
2. 如果你是其他版本的IDEA,那么用压缩工具处理你的DEA安装目录下lib文件夹中的ecj-x.x.x.jar文件(名字根据IDEA版本会有所不同),将Util.class替换该jar包目录中\org\eclipse\jdt\internal\compiler\util路径下的...