Reputation: 12444
I made a Java project with Eclipse. The project has a public static void main(String[] args)
method in it.
When I try to export it to a runnable jar, the launch configuration does not include the project I created so I can't create the jar for the project. Any ideas why?
Upvotes: 4
Views: 27667
Reputation: 40396
Try creating a new launch configuration from scratch:
Run
-> Run Configurations...
New
Now try exporting your runnable JAR again using that run configuration.
Upvotes: 16
Reputation: 18812
One more answer, in hope it will help some one:
I had a situation where the configuration did appear in the Run -> Run Configurations
list,
but did not appear on the list of the Ruannable JAR export wizard.
It was cured only after I closed and re-launched Eclipse.
Upvotes: 0
Reputation: 3720
Either run the project once to automatically create a run configuration or go into the project options and create one manually.
Upvotes: 4