How to set a main class in sbt for a subproject?

384 views
Skip to first unread message

Peteris Erins

unread,
Aug 11, 2012, 10:14:39 PM8/11/12
to scala...@googlegroups.com
First of all, scala cannot find my main class by default when I use sbt, project to change project and then run. I've tried a lot of things, including adding mainClass = Some("Main") in settings, writing mainClass in Compile := Some("Main"), etc. How can this be done in the same Build.scala file where I define my subprojects?

Thanking you
-- 
Peteris Erins

Seth Tisue

unread,
Aug 12, 2012, 8:05:47 AM8/12/12
to scala...@googlegroups.com
in the subproject's settings works for me.

--
Seth Tisue | Northwestern University | http://tisue.net
lead developer, NetLogo: http://ccl.northwestern.edu/netlogo/
Reply all
Reply to author
Forward
0 new messages