java.lang.RuntimeException: No main class detected.

GitHub | JJ | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    "No main class detected"

    GitHub | 8 months ago | JJ
    java.lang.RuntimeException: No main class detected.
  2. 0

    master does not build/run?

    GitHub | 2 years ago | hffmnn
    java.lang.RuntimeException: No main class detected.
  3. 0

    scalac option -uniqid causes sbt to lose its mind

    GitHub | 4 years ago | harrah
    java.lang.RuntimeException: No main class detected.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    sbt run hangs when more than one main is available; also Java main not picked up

    GitHub | 5 years ago | mslinn
    java.lang.RuntimeException: No main class detected.
  6. 0

    scalac option -uniqid causes sbt to lose its mind

    GitHub | 4 years ago | paulp
    java.lang.RuntimeException: No main class detected.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    No main class detected.

    at scala.sys.package$.error()
  2. Scala
    package$.error
    1. scala.sys.package$.error(package.scala:27)
    1 frame
  3. org.scalajs.sbtplugin
    ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37$$anonfun$apply$39.apply
    1. org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37$$anonfun$apply$39.apply(ScalaJSPluginInternal.scala:688)
    2. org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37$$anonfun$apply$39.apply(ScalaJSPluginInternal.scala:688)
    2 frames
  4. Scala
    Option.getOrElse
    1. scala.Option.getOrElse(Option.scala:120)
    1 frame
  5. org.scalajs.sbtplugin
    ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37.apply
    1. org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37.apply(ScalaJSPluginInternal.scala:687)
    2. org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$55$$anonfun$apply$37.apply(ScalaJSPluginInternal.scala:682)
    2 frames
  6. Scala
    Function1$$anonfun$compose$1.apply
    1. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    1 frame
  7. SBT
    $tilde$greater$$anonfun$$u2219$1.apply
    1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
    1 frame
  8. sbt Task system
    Transform$$anon$4.work
    1. sbt.std.Transform$$anon$4.work(System.scala:63)
    1 frame
  9. SBT
    CompletionService$$anon$2.call
    1. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    2. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    3. sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    4. sbt.Execute.work(Execute.scala:235)
    5. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    6. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    7. sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
    8. sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
    8 frames
  10. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    6. java.lang.Thread.run(Thread.java:745)
    6 frames