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:
After several attempts, problem was resolved. I compiled the Server with javac Server.java then java -cp User.jar Server.