reset password
Author Message
BryanYeh
Posts: 38
Posted 17:01 Sep 22, 2012 |

 I did everything according to the Sbt Tutorial but the part I am getting stuck at is the compile,test,run. I even made sure I was even in the right folder. The compile doesn't even find any sources, the test doesn't find any of the things to test, and the run just doesn't work.

C:\Downloads\recfun>sbt
[info] Set current project to default-593efb (in build file:/C:/Downloads/recfun/)
> compile
[success] Total time: 1 s, completed Sep 22, 2012 4:57:28 PM
> test
[info] No tests to run for test:test
[success] Total time: 0 s, completed Sep 22, 2012 4:57:30 PM
> run
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 Sep 22, 2012 4:57:34 PM
>

 

Anyone know what I am doing wrong?

BryanYeh
Posts: 38
Posted 17:27 Sep 22, 2012 |

Never mind, I've tried the folder and the sub folder even the parent folder.. I got it working.