-1

I am currently working on a university project involving police patrol management. It is necessary to implement different security elements in order to keep the data protected. I have therefore designed a beginning of a Client Server application.

All works well when running on IntelliJ but things get complicated once in command line. The compilation works but the execution is impossible because of a java.lang.NoClassDefFoundError.

Here is my Project Structure :

enter image description here

Here is the error after trying to run only the Server side of the project :

enter image description here

Is this error due to the fact that I am using files with secret keys and a certificate ? Or is it just my structure that is causing the problem ?

Can you help me ?

1 Answers1

0

I think every thing is ok except one thing..pay attention at ServerSide/Server

look at the second image you have sent .. I had same problem . Look at this answer NoClassDefFoundError: wrong name

You need to run it from the package root on. Go one folder up so that you're in the folder which in turn contains the "ServerSide" folder representing the package and then execute " java ServerSide .Server"

maede
  • 16
  • 3