如何解决找不到的Java类路径?

时间:2015-04-11 04:15:21

标签: java web-services sockets jax-ws

我是Java Socket编程的新手。我有三个Java项目:一个JAX-WS Web服务,一个普通的Java应用程序(客户端)和一个sock项目。 Web服务和客户端工作正常,套接字服务器出现问题。我不能从客户端消费它。每次我尝试时,都会引发以下异常:

Exception in thread "main" java.lang.ClassNotFoundException: Document
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:626)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
    at SocketClient.executeOperation(SocketClient.java:69)
    at SocketClient.processOperation(SocketClient.java:38)
    at SocketClient.main(SocketClient.java:97)
Java Result: 1 

0 个答案:

没有答案