Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse create runnable jar problem

Tags:

java

eclipse

jar

Ok I created a new Java project in Eclipse with Java class and its main method. Then when doing an export - runnable jar I do not see my new project being listed in the "Launch Configurations" drop down. I can see other projects but not the newly created one.

I'm I missing something?

public class SSLTest {
   public static void main(String[] args)  {
}
}
like image 404
Marquinio Avatar asked Feb 17 '10 17:02

Marquinio


2 Answers

Did you run SSLTest in Eclipse? I think you need to run that class (through the Run menu) in order for Eclipse to create a launch configuration.

like image 80
Kaleb Brasee Avatar answered Sep 25 '22 12:09

Kaleb Brasee


Go to Run as-> Run as Java Application your java file having main class. There you go -> Now you can see your project listed in "Launch Configurations" when you try to export as runnable jar file.

like image 38
Sayan Avatar answered Sep 23 '22 12:09

Sayan