gpt4 book ai didi

Java org/objectweb/asm/ClassVisitor 未找到

转载 作者:太空宇宙 更新时间:2023-11-04 15:02:35 34 4
gpt4 key购买 nike

我正在尝试在 Eclipse 中运行一个使用 java RMI 的项目,但是当我运行它时,它给出了以下错误:

java.rmi.ServerError: Error occurred in server thread; nested exception is:  
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

asm-3.1.jar 库已经在项目类路径中,如果我尝试导入该类org.objectweb.asm.ClassVisitor,正确看到。由此可见,问题出现在运行时。

有什么建议吗?

谢谢

编辑(Eclipse 类路径文件):

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="lib" path="lib/asm-3.1.jar"/>
<classpathentry kind="lib" path="lib/asm-analysis-3.1.jar"/>
<classpathentry kind="lib" path="lib/asm-commons-3.1.jar"/>
<classpathentry kind="lib" path="lib/asm-tree-3.1.jar"/>
<classpathentry kind="lib" path="lib/asm-util-3.1.jar"/>
<classpathentry kind="lib" path="lib/asm-xml-3.1.jar"/>
<classpathentry kind="lib" path="lib/commons-io-2.4.jar"/>
<classpathentry kind="lib" path="lib/java-cup-11a.jar"/>
<classpathentry kind="lib" path="lib/jdom.jar"/>
<classpathentry kind="lib" path="lib/jmockit_B.jar"/>
<classpathentry kind="lib" path="lib/jode-1.1.2-pre1.jar"/>
<classpathentry kind="lib" path="lib/junit-4.6.jar"/>
<classpathentry kind="lib" path="lib/junit-4.9b2.jar"/>
<classpathentry kind="lib" path="lib/ModifiedClasses.jar"/>
<classpathentry kind="lib" path="lib/tools.jar"/>
<classpathentry kind="lib" path="lib/uispec4j-2.4-jdk16.jar"/>
<classpathentry kind="lib" path="lib/uispec4j-jdk6-2.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

最佳答案

将运行时所需的 jar 添加到 Eclipse 的 Run 类路径配置中。单击“添加 JAR”或“添加外部 JAR”按钮:

enter image description here

关于Java org/objectweb/asm/ClassVisitor 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22392812/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com