Jump to content
  • 0
ZappyFun

I Jarred my Client Correctly

Question

However when I open it nothing happens?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Most likely missing Main Class directive. You either have to specify which class to use when running your jar (requires bat file) e.g.:
[code]
java -jar yourjar.jar package.Class
[/code]

Or if you want to click & run the jar you need to have a MANIFEST.MF file more information here: [url]https://docs.oracle.com/javase/tutorial/deployment/jar/manifestindex.html[/url]

In the manifest you will have to tell which class is your main class.

Share this post


Link to post
Share on other sites

×