Reputation: 81
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
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
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
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
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