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

java.lang.RuntimeException: No main class detected.
at scala.sys.package$.error(package.scala:27)
at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37$$anonfun$apply$39.apply(ScalaJSPluginInternal.scala:688)
at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37$$anonfun$apply$39.apply(ScalaJSPluginInternal.scala:688)
at scala.Option.getOrElse(Option.scala:120)
at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37.apply(ScalaJSPluginInternal.scala:687)
at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37.apply(ScalaJSPluginInternal.scala:682)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:235)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

2 times, 5 months ago
Once, 7 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
92 more bugmates

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