RMI CLASSNOFOUNDEXCEPTION

06-04-03 fxwolf
我在做rmi程序的时候遇到了一个问题,请教各位;

目录结构如下:

D:\project\

D:\project\build\

D:\project\build\classes\

D:\project\build\classes\report\

D:\project\build\classes\report\ReportAssist.class

D:\project\build\classes\report\ReportAssistImpl.class

D:\project\build\classes\report\ReportAssistServer.class

D:\project\build\classes\report\ReportAssistClient.class

D:\project\build\classes\report\ReportAssistImpl_Stub.class

D:\project\lib\

D:\project\lib\jdom.jar

D:\project\lib\sqljdbc.jar

D:\project\config.xml

#rmiregistry 2001

cd D:\project\

set CLASSPATH=./lib/;./build/classes/

rmiregistry 2001 --正常启动

#start server

cd D:\project\

java -Djava.rmi.server.codebase=file:D:\project\lib\ -classpath ./build/classes/ report.ReportAssistServer --正常

#start client

cd D:\project\

java -Djava.rmi.server.codebase=file:D:\project\lib\ -classpath ./build/classes/ report.ReportAssistClient

--异常

java.lang.NoClassDefFoundError: org/jdom/JDOMException

当启动客户程序时server程序打印出了提示信息.

请各路高手指点.

谢谢.

banq
2006-04-10 11:24
> org/jdom/JDOMException

需要JDOM.jar这个包

猜你喜欢