java.lang.RuntimeException: No main class detected.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via playframework.com by Unknown author

Add guice to the dependencies.

libraryDependencies += guice

Solutions on the web

via GitHub by mb720
, 1 year ago
No main class detected.
via GitHub by hffmnn
, 2 years ago
No main class detected.
via GitHub by alanngai
, 2 years ago
via GitHub by TimGraf
, 1 year ago
via GitHub by gslowikowski
, 1 year ago
No main class detected.
java.lang.RuntimeException: No main class detected.
at scala.sys.package$.error(package.scala:27)

Users with the same issue

Once, 2 weeks ago
7 times, 1 month ago
4 times, 2 months ago
4 times, 5 months ago
Once, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.