RMI CLASSNOFOUNDEXCEPTION

fxwolf發表於2006-04-03
我在做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程式列印出了提示資訊.

請各路高手指點.

謝謝.

相關文章