Reputation: 73
This is a tryout app really, nothing big, it has 119 lines of code. I'm just messing with java fx, trying to create a GUI java app runnable. So, in eclipse, right click on my project
export > java application > jar runnable isn't working
Jar file won't generate and it gives me "No resources selected" and "Can't find main method" error I've tried the following (none of which worked):
Manifest:
Manifest-Version: 1.0
Main-Class: application.Main
After I tried all of that I still get the error. Does anyone know why, and could you please help?
Upvotes: 0
Views: 1609
Reputation: 126
In a Package Explorer
right click on a project and selecting Export...
Among possible options select Java/JAR file
Here we have big window:
Check that right project selected in a left list
Write a path to a destination file (it will be created if not exists) in JAR file
field ... and click next
Click next
again
In such window:
We should select the main class that will be executed in a start of application (You can click Browse
to make your life easyer). This screen determines whether JAR will be runnable or not (if main class is not set up -> it would be just a library JAR file)
Upvotes: 2