File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException to try read object from socket.

 
Gustavo Siqueira
Ranch Hand
Posts: 97
C++ Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 2878
59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for updating your post with the solution.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic