Exception in thread “main” java.lang.NoClassDefFoundError: ClientREST
So, you ran it as java ClientREST
. It’s expecting a ClientREST.class
without any package
.
(wrong name: clientrest/ClientREST)
Hey, the class is trying to tell you that it has a package clientrest;
. 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 clientrest
folder representing the package and then execute java clientrest.ClientREST
.
You should not go inside the clientrest
package folder and execute java ClientREST
.