When I try to export my project as a runnable jar Eclise gives me the following error:
No resources selected.
The project runs fine within Eclipse, I already
I was having this same problem, and I was able to resolve it. Maybe you should cross verify the main
class, that you selected in this project. It is possible that some other project's main
class may have the same name as the main
class you selected. Make sure the main
class you selected is the one from the project that you selected.
Check that your project is correct at the time when you select the main class.
If the class non exist, it's the standard error of Eclipse.
I found another solution.
I found that there's a bug in JDK 9.
I solved it by downgrade to JDK 8(1.8.1)
I continued to get the "no resources selected" error. I then did the procedure I am quoting and it gave me a MANIFEST file. Then I was able to create an executable JAR.
Quoting: "I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should."
Just copy the project as a new one. Configure the build path by creating new Run/Debug Settings.this would resolve the problem.
The problem is most likely with your run configuration.
The last step is key.