Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbt run - No main class detected #29

Open
NouhaThabet opened this issue Dec 13, 2018 · 1 comment
Open

sbt run - No main class detected #29

NouhaThabet opened this issue Dec 13, 2018 · 1 comment

Comments

@NouhaThabet
Copy link

Hello,

Sorry for disturbing but I followed the guide and the project doesn't work it said that "No main class detected". The following code contains the result of each command.

C:\Users\Nouha\pra>sbt test
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading project definition from C:\Users\Nouha\pra\project
[info] Set current project to pra (in build file:/C:/Users/Nouha/pra/)
[info] ScalaTest
[info] Run completed in 57 milliseconds.
[info] Total number of tests run: 0
[info] Suites: completed 0, aborted 0
[info] Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
[info] No tests were executed.
[success] Total time: 1 s, completed 13 dÚc. 2018 14:51:12

C:\Users\Nouha\pra>sbt "run Users\Nouha\pra"
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading project definition from C:\Users\Nouha\pra\project
[info] Set current project to pra (in build file:/C:/Users/Nouha/pra/)
java.lang.RuntimeException: No main class detected.
at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) No main class detected.
[error] Total time: 0 s, completed 13 dÚc. 2018 14:51:48

Waiting for your reply.

Thank you !

@matt-gardner
Copy link
Owner

Sorry, it's been years since I touched this code, and I don't really have the bandwidth to support it anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants