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.

 

0 0 vote
Article Rating

Hussein Terek

Founder of programmergate.com, I have a passion in software engineering and everything related to java environment.

You may also like...

guest
0 Comments
Inline Feedbacks
View all comments