Run two Java programs from Eclipse at once?

Nick Heiner picture Nick Heiner · Mar 28, 2011 · Viewed 89.2k times · Source

I am building a Java Google App Engine server project and a Java desktop client. I would like to run them both at once, but I'm not sure if this is possible using Eclipse/GAE plugin. Is there some way? I'd like to be able to step through them both at the same time.

I tried opening a new instance of Eclipse, but it complained that the workspace is already in use, both projects are in the same workspace. (Perhaps I could just move them to different workspaces.)

Answer

corsiKa picture corsiKa · Mar 28, 2011

I'm not familiar with the GAE and if that interferes, but I don't have a problem running multiples. I often fire up a server and multiple clients from the same window.

A few pointers:

  • Go to the main method of each program to run them. Once you've run them once, they show up in the drop menu on the run button.
  • Make multiple consoles and pin them. It makes it much easier to see your (debug/informational) outputs in real time.
  • Move the multiple consoles to separate views so you can see them at the same time.

Before on top, after on bottom enter image description here