Run Eclipse project on a remote machine

前端 未结 4 1108
攒了一身酷
攒了一身酷 2020-12-24 12:27

I have been working on a Java project from my local machine using Eclipse. I am trying to run this on a remote machine. The remote machine is a cluster running on Linux. Rig

4条回答
  •  遥遥无期
    2020-12-24 13:19

    • Set your project output folder to the remote folder you mounted (under Project Properties->Java Build Path).
    • Then execute external tool: ssh user@rometesite -c "java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n Main"
    • Launch in eclipse a Remote Java Application (port 4000)

    see http://www.ibm.com/developerworks/opensource/library/os-eclipse-javadebug/index.html for more detailed information about remote debug.

提交回复
热议问题