-
Notifications
You must be signed in to change notification settings - Fork 224
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
Can't figure out how to specify a main class. #61
Comments
Try putting your sources under |
That worked. Sorry for the trouble! PS. For anyone else having this problem and/or attempting to replicate. The package runner also has to be changed to: package runner object runner { def main(args: Array[String]){ println("Starting run."); helloWorldTest.helloWorld.run(args); println("Done."); } } |
I have same problem. I am running for java, and I put my code under src/main/java//. I can see the Main-Class entry has been written into META-INF/MANIFEST.MF. But it still complains by not finding main class. I can do java -cp however. |
I Got this error too |
Same issue here.
|
For google: Perhaps it's a problem like this: https://stackoverflow.com/a/46287790 |
I'm sure I must be doing something wrong, but I can't for the life of me figure out what. I've stripped it down to as simple as possible, but it still doesn't work.
I keep getting this error when I try to run the jar files:
The build.sbt and plugins.sbt files were exactly as in your example at:
https://github.com/sbt/sbt-assembly
except build.sbt is:
Here's my src directory layout:
runner.scala is just:
What the heck is going wrong here?
The text was updated successfully, but these errors were encountered: