run configuration [message #90592] |
Fri, 29 July 2005 16:29  |
Eclipse User |
|
|
|
Originally posted by: yxutech.yahoo.com
I have to write this message again because the one I wrote two days ago
was deleted.
In the run configuration: Run --> Run... --> Java Application, the name
of the "Main class" has to be specified. Is there anyway so that a
configuration can be used to run any java class?
A large application may have thounds of java classes. To make a run
configuration for each class is simply too much. I have been using
JBuilder. In JBuilder, you can make several configurations that can be
used by any class. I am totally new to eclipse. I believe there must be
the similar way. How to do it?
|
|
|
Re: run configuration [message #91204 is a reply to message #90592] |
Mon, 01 August 2005 10:49  |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
mark wrote:
> I have to write this message again because the one I wrote two days ago
> was deleted.
>
> In the run configuration: Run --> Run... --> Java Application, the name
> of the "Main class" has to be specified. Is there anyway so that a
> configuration can be used to run any java class?
> A large application may have thounds of java classes. To make a run
> configuration for each class is simply too much. I have been using
> JBuilder. In JBuilder, you can make several configurations that can be
> used by any class. I am totally new to eclipse. I believe there must be
> the similar way. How to do it?
>
Even though applications have many classes, not all of them are runnable
(have a main() method) - in fact, usually only a small number of classes
are runnable.
The best thing you can do in Eclipse right now is to create a
"prototype" run configuration the way you want it, then you can
duplicate it (via right-click in the Launch configs dialog) for each
class that you want to run - you'll only have to edit the class name.
HTH,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.08173 seconds