Run two Java programs from Eclipse at once?

前端 未结 3 578
一个人的身影
一个人的身影 2020-12-02 22:17

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/G

相关标签:
3条回答
  • 2020-12-02 22:58

    @Corsika answer explains how to run on Eclipse

    If you are comfortable running on two or more programs on the terminal you can copy command line args from the debug view for different launch configurations and run on two or more terminals!!

    To get the full command line, you can open the Debug view from Window>Show View>Other>debug

    Now after run> Right click on the last launch(debug tab) and go to properties. Eclipse will list the exact command line.

    0 讨论(0)
  • 2020-12-02 22:59

    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

    0 讨论(0)
  • 2020-12-02 22:59

    After adding the new Console view, you must go to the icon to its left and select which console you want to see. If you're running two programs you will see the two programs in the drop down list.

    Thanks for the answers. I was just trying it out and it was really helpful.

    (By icon to the left I mean the one that looks like a mini purple color monitor)

    0 讨论(0)
提交回复
热议问题