File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes ClassNotFoundException to try read object from socket. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "ClassNotFoundException to try read object from socket." Watch "ClassNotFoundException to try read object from socket." New topic
Author

ClassNotFoundException to try read object from socket.

Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 97

I'm getting a ClassNotFoundException to try read object from socket. In Eclipse, I send an object that belongs the package com.messenger.client.User to the Socket. So, I build a jar file to that package.
Now, I going to Terminal Linux e run my server socket with the command javac -cp User.jar Server.java, then java Server



However, appears the following error:



[SOLVED]

After several attempts, problem was resolved. I compiled the Server with javac Server.java then java -cp User.jar Server.
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2237
    
  47
Thanks for updating your post with the solution.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ClassNotFoundException to try read object from socket.