SBT error when running package application: java.lang.RuntimeException: No main class detected.

This page summarizes the projects mentioned and recommended in the original post on /r/scala

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
  1. sbt-assembly

    Deploy über-JARs. Restart processes. (port of codahale/assembly-sbt)

    You may also use sbt-assembly to produce an uber JAR that embeds the Scala stdlib together with your code, which means that now for running your program you only need a JRE like java -jar app-assembly.jar. This option is great because now if you start adding dependencies to your project those are also included in this massive JAR.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. sbt-native-image

    Plugin to generate native-image binaries with sbt

    Assembly, however, has some disadvantages so you may also want to look into other alternatives like sbt-native-packager. You may even want to produce a binary using sbt-native-image (which uses GraalVM under the hood) so your users do not need to install anything at all, not even a JRE.

  4. sbt-native-packager

    sbt Native Packager

    IMO don't take any of this advice and use https://github.com/sbt/sbt-native-packager

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • sbt-blowout

    2 projects | /r/scala | 25 Feb 2022
  • Trouble with sbt-native-packager

    2 projects | /r/scala | 7 Dec 2023
  • I had a great experience with Scala and hopefully it will get more popular

    10 projects | /r/scala | 11 Jul 2023
  • babashka not working - Fatal error: Failed to create the main Isolate. (code 8)

    2 projects | /r/AsahiLinux | 1 Jun 2023
  • Asking for help to improve codepreview

    1 project | /r/scala | 16 May 2023

Did you know that Scala is
the 37th most popular programming language
based on number of references?