Can I store multiple executable classes in one project? [message #1062817] |
Mon, 10 June 2013 21:12  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02828 seconds