Marquinio
Marquinio

Reputation: 81

Eclipse create runnable jar problem

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)  {
}
}

Upvotes: 8

Views: 13447

Answers (4)

myname
myname

Reputation: 1

In Eclipse, under the file tab, choose runnable jar file under java folder, fill in information, u need a launchConfig and then u can save it

Good Luck!

Upvotes: -1

cmbryan
cmbryan

Reputation: 395

In eclipse there are different categories of run configurations. "Eclipse Application" configs can't be used to create runnable jars. You need to have a "Java Application" configuration.

Upvotes: 0

Sayan
Sayan

Reputation: 137

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.

Upvotes: 2

Kaleb Brasee
Kaleb Brasee

Reputation: 51915

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.

Upvotes: 13

Related Questions