Eclipse – Main class doesn’t show when exporting a runnable jar file
Sometimes when trying to export a runnable jar file in Eclipse, your main class doesn’t show up. This tutorial guides you on how to fix this issue.
If it happens to get a blank list in the “Launch Configuration” combo of the “Runnable JAR File Export” page in Eclipse, or you couldn’t find your main class:
Then, all you have to do is to open your class and then run it as a Java Application through:
right-click -> Run As -> Java Application
After you run it at least once, your main class will then show in the “Launch Configuration” combo of the export page.