You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @pepperonas! I am running into a similar issue and wanted to know how did you build the project to get those 3 JAR files (and where would they be located after building)? Thank you.
Sorry for my unresponsiveness. It looks like you found the class, which is located in the OCPP-J module. I split them up some time ago.
If you build the project from the root folder using mavens mvn install, then the jars should be placed in your maven cache.
If you use maven to build the project, then having the jars in the maven cache should work, but if you want to find the files you can find the cache here: https://www.baeldung.com/maven-local-repository
Hello Thomas,
I build your code to these two jars:
common-0.5-SNAPSHOT.jar
andv1_6-0.5-SNAPSHOT.jar
Then I took the jars and added in my project. The classes is found by IntelliJ perfectly fine.
But when I run the project I get a ClassDefFoundError
Exception in thread "main" java.lang.NoClassDefFoundError: eu/chargetime/ocpp/wss/WssSocketBuilder
at OcppDriver.connect(OcppDriver.java:121)
which is the following line of code of your JSONClientSample:
client = new JSONClient(core);
Do you have any suggestion what I am doing wrong?
EDIT:
After I added the
OCPP-J-0.5-SNAPSHOT.jar
the code seems to run.The text was updated successfully, but these errors were encountered: