I’m working with a Java program that has multiple components (with Eclipse & Ant at the moment).
Is there some way to start multiple programs with one launch configuration? I have an Ant target that does the job (launches multiple programs) but there are things I would like to do:
- I would like to debug the programs with Eclipse, hence the need for Eclipse launch.
- I would like to see the outputs for the programs at separate consoles.
Also other ways to launch multiple Java programs ‘with one click’ with separate consoles and/or debugging would be ok.
[‘multiple launch part’:]
If you have an ant launch configuration which does what you want, you can always transform it into a java launcher calling ant.
You can then launch this ant session as a regular java application, with all eclipse debugging facilities at your disposal.
Add to your classpath in the User Entries section (before your project and default path):
[Multiple console part]
May be a possible solution would be to make sure your ant launcher actually launches the different application in their own JVM process (one javaw.exe for each application)
That way, you could use the ability of the native eclipse console to switch between different process.