Skip to content

No main class detected #1

Description

@Matthew1172

Imported this project into IntelliJ using:
JDK 17
Scala 2021.3.20
SBT 1.6.2
When I got to the SBT shell, I typed in
run src/test/resources/pgh_session_tunebook.abc
and I got the error:

[error] java.lang.RuntimeException: No main class detected.
[error]         at scala.sys.package$.error(package.scala:30)

I tried to specify the main class by adding this line to the bottom of the build.sbt file:
Compile/mainClass := Some("com.foomoo.abc.app.TuneMatcher")
But then I get another error:

[error] java.lang.ClassNotFoundException: com.foomoo.abc.app.TuneMatcher
[error]         at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:440)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions