Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Can I store multiple executable classes in one project?
Can I store multiple executable classes in one project? [message #1062817] Mon, 10 June 2013 21:12 Go to next message
Justin Mei is currently offline Justin MeiFriend
Messages: 1
Registered: June 2013
Junior Member
If I have a simple piece of java code in a small class (that has a main method), and I just want to create a classfile, compile and run it, can I do that without creating a new project every time, by just adding it to an existing project of examples?

I'd just like to store all my little code samples under one java project (each classfile independantly executable)
Re: Can I store multiple executable classes in one project? [message #1062834 is a reply to message #1062817] Tue, 11 June 2013 03:30 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 06/10/2013 04:20 PM, Justin Mei wrote:
> If I have a simple piece of java code in a small class (that has a main
> method), and I just want to create a classfile, compile and run it, can
> I do that without creating a new project every time, by just adding it
> to an existing project of examples?
>
> I'd just like to store all my little code samples under one java project
> (each classfile independantly executable)
Yes, you can have as many "main" classes as you want. You will have to
create separate launch configurations for each one.
Previous Topic:Formatting java and JSP Files programmatically
Next Topic:list of all available projects in eclipse workspace
Goto Forum:
  


Current Time: Thu Apr 25 21:27:45 GMT 2024

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

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

Back to the top