Sami
Sami

Reputation: 7837

How to execute two java projects at one go in eclipse?

I have a project which do some processing on data provided in terms of CSV files. For testing purposes I want to create another separate application which simulates injecting the files on specific time periods and I want to make both applications run together so that the main application will get the files generated from the simulator application. But I want to keep the two applications totally separated.

Is there anyway to execute the two projects without calling one of them inside the other's code?

Upvotes: 1

Views: 175

Answers (2)

PC.
PC.

Reputation: 7024

Create a third project that will launch both the projects simultaneously. :D

Upvotes: 0

Jon Taylor
Jon Taylor

Reputation: 7905

You could create a batch file that compiles and runs both projects. You could also write a third java program that does the same as the batch file but using the Runtime class in Java to call exec commands.

Upvotes: 2

Related Questions