Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to Run only ONE of many Multiple java files with main(....) in one project?(Java compile and run one of many Java files)
How to Run only ONE of many Multiple java files with main(....) in one project? [message #721435] Thu, 01 September 2011 18:41 Go to next message
Eclipse UserFriend
If I have multiple java files, each with main(), in a single project, how do
I disable the other files (which have its own main()) from running and only select one which I need to test?

Thanks.

[Updated on: Thu, 01 September 2011 18:41] by Moderator

Report message to a moderator

Re: How to Run only ONE of many Multiple java files with main(....) in one project? [message #722208 is a reply to message #721435] Mon, 05 September 2011 04:58 Go to previous message
Eclipse UserFriend
You could select the necessary main class in the launch configuration. You could even open the file that you want to launch and just click Run As and select "Main Application".
Previous Topic:Testing Eclipse Plugin Preference Page and Handler
Next Topic:Want to implement some nice GUI stuff like Eclipse
Goto Forum:
  


Current Time: Sun Feb 09 19:23:55 GMT 2025

Powered by FUDForum. Page generated in 0.02818 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top