This content has been marked as final. Show 3 replies
a class is defined by both its name and its package. "CoreServer.User" is not the same class as "CoreClient.User" (as the exception told you). you have to pick one package and use it in both the client and server.
Thanks for your reply. You mean that common classes for both server and client must be from the same package.
He means that even if your classes are identical in every way, if they're not in the same package, they're not the same class.
And then you'll just be sending class A and trying to receive it as class B, resulting in error.