0

(I see that this question was asked a couple of times a few years back, I tried the suggested methods but they aren't working for me).

I am on Ubuntu 16.04 LTS and Eclipse Oxygen (4.7.1a). Java version is 9.0.1

As an exercise, I just coded a very simple guessing game application (with GUI) from a very recent (2017) Java book from a well known publisher. The app runs smoothly from Eclipse.

Then I wanted to create a runnable JAR file, with file -> export -> java -> runnable JAR file. I then entered those apparently obvious launch configuration and export destination details, but when I clicked on finish it says "JAR creation failed" (details: No resources selected. JAR export finished with problems. Could not find main method for given launch configuration)

Any help and suggestions would be greatly appreciated, thanks.

A. N. Other
  • 409
  • 4
  • 14

0 Answers0