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:

Export runnable jar eclipse

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

Eclipse - 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.


1 1 vote
Article Rating

Hussein Terek

Owner of, I have a passion for software engineering and everything related to Java environment.

Inline Feedbacks
View all comments