I have a Scala project that I want to run from the command line. However, this is within a package so if I try to run the class Main
(which contains a main
method) I get:
error: illegal start of definition
package mypackage
Any idea how to run Main
from the command line while still keeping the package?