wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes how to add another launching class in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how to add another launching class in eclipse" Watch "how to add another launching class in eclipse" New topic
Author

how to add another launching class in eclipse

mansoor altaf
Greenhorn

Joined: Jan 25, 2009
Posts: 8
Hi,

the project at which i am working is developed in eclipse and the run script is some sort of python script, i wanted to change the behaviour of my program when it initially starts and i plugged in my own class in it, now i am unable to make it "first launch choice " by eclipse, how to make my own class a first class to launch, i have changed the run/debug configurations but i am unable to find my class in run configuration search. any help is highly appreciated.

regards.

Mansoor
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Sorry, I'm not familiar with "first launch choice" in Eclipse and when I searched the Internet for it, I couldn't find anything about it. Can you tell us how you get to that option, i.e. which Eclipse menu options you're using?
mansoor altaf
Greenhorn

Joined: Jan 25, 2009
Posts: 8
ok, i think that i was unable to explain. "first launch choice" is nothing , i just want that when i run my eclipse project it chooses my java class to run (there are many java classes having main method in them).

regards.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

mansoor altaf wrote:ok, i think that i was unable to explain. "first launch choice" is nothing , i just want that when i run my eclipse project it chooses my java class to run (there are many java classes having main method in them).

regards.


That is determined by your Eclipse run/debug profile. You can create multiple profiles against the same project and each one may invoke a different main class and/or run parameters. I do this frequently, in fact.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to add another launching class in eclipse
 
Similar Threads
Re : Run Linux Shell script in Java
Inconvinience at Runing an eclipse application
Symlink question
HFSJ - Ch3 - Multiple Tabs opening in Firefox.
JComboBox