找不到Java org/objectweb/asm/ClassVisitor

找不到Java org/objectweb/asm/ClassVisitor,java,rmi,Java,Rmi,我正试图在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.Class

我正试图在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的运行类路径配置中。单击“添加罐子”或“添加外部罐子”按钮:


可能在运行时,您使用的JRE版本比编译jarNo时使用的版本要低,这是不可能的,因为我使用的是最新的1.7 JRE。您可以在运行rmi服务器时发布您在运行时使用的类路径吗?是的,我刚刚在第一篇文章中添加了Eclipse类路径文件的内容。你看到有什么奇怪的吗?你是如何运行你的应用程序的?使用Eclipse运行配置?如果是,您应该将JAR添加到运行时类路径配置中(检查其“打开启动配置”)