views:

23

answers:

2

Hey everyone,

I've gotten this to work in the past, but now whenever I choose File > Export... > Runnable JAR File and select the drop-down menu "Launch Configuration", all I get is a blank bar.

How can I get my main class to show up?

Many Thanks,

Justian

A: 

This "launch configuration" thingie is all fine and good, but you probably just want to specify a main class. One of the pages of the "export" dialog will let you browse for and specify that main class, without the need to go looking for an appropriate configuration. That's how I do it.


EDIT

What I do is

File | Export | Java | Jar File

Then I select the stuff I want exported.

Next | Next and I get a chance to specify my main file.

Carl Smotricz
I don't see anything to specify the main class. The first page gives me the option of what I want to export, then the second page has the options: `Launch Configuration`, `Export Destination`, `Library Handling`(radio buttons), and `Save as ANT Script` (checkbox).
Justian Meyer
+2  A: 

On the class you want to have main(...) executed in, choose Run->Run and run your program.

This process creates a launch configuration you can use (and save too, if you make it shared)

Thorbjørn Ravn Andersen
Worked nicely. I was trying `Run > Run` From the top menu until I re-read what you wrote and right-clicked the main class after pressing the `+` in the left sidebar to open it up.
Justian Meyer