java.lang.ClassNotFoundException: Main


Samebug tips

you can change your scala version to 2.11.11


1 month ago

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.


9 months ago
Expert tip

Solutions on the web

Solution icon of stackoverflow
Main

Solution icon of stackoverflow
via Stack Overflow by Hamza Khalil
, 1 year ago
src/multisite/Main

Solution icon of stackoverflow
Main

Solution icon of stackoverflow
Main

Solution icon of stackoverflow
via Stack Overflow by Valya
, 11 months ago
Main

Solution icon of github
via GitHub by ytang
, 1 year ago
Main$$Lambda$1

Solution icon of googlegroups
via Google Groups by nonito, 2 months ago
My Projects.JavaSample Exception occurred in main() of java.applet.Applet

Solution icon of github
via GitHub by loser007
, 4 months ago
web-examples/src/main/js/io\vertx\example\web\helloworld/server.js

Solution icon of stackoverflow
/home/szi/Documents/Eclipse/Java/HTM/src/main/java/Intro2/NetworkAPIDemo.java

Stack trace

java.lang.ClassNotFoundException: Main
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:285)
	at java.lang.Thread.run(Thread.java:748)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2476 more bugmates