Getting java.lang.ClassNotFoundException, although I specified the correct jar with -cp

java.lang.ClassNotFoundException: com.hazelcast.core.Hazelcast

This bit is weird though, because I added hazelcast-1.8.5.jar to the classpath when I run java:

java -cp hazelcast-1.8.5.jar -jar myapp.jar

So I can’t understand why I get a ClassNotFoundException when the frame from the hazel is well and truly present and specified on the command line. Any ideas please?

By the way, the Caribbean forest is pretty sweet!

+5
source share
2 answers
+7

ClassPath JAR.

+4

All Articles