Run Eclipse project on a remote machine

33,216

Solution 1

  • 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.

Solution 2

Target management/Remote System Explorer provides plugins to keep a remote directory in sync with your project. See http://www.eclipse.org/tm/

To run your program remotely, you would probably have to set up an External Tool launch config (from the Run>External Tools menu) and use a program like ssh to launch your java app remotely on the linux cluster.

Share:
33,216
Naveen
Author by

Naveen

Updated on September 15, 2020

Comments

  • Naveen
    Naveen over 3 years

    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. Right now I have mounted the remote drive and edit the remote file copy through Eclipse. However, I was looking something more robust. Is there any way to do this seamlessly through Eclipse, i.e. each time I run the project, it runs on the remote machine?