Eclipse - 在远程机器上运行项目 [英] Eclipse - Run project on a remote machine
本文介绍了Eclipse - 在远程机器上运行项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
- 将您的项目输出文件夹设置为您安装的远程文件夹(在项目属性 - > Java构建路径)。
- 然后执行外部工具:ssh user @ rometesite -cjava -Xdebug -Xrunjdwp:server = y,transport = dt_socket,address = 4000,suspend = n Main
- 在eclipse中启动远程Java应用程序(端口4000)
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?
解决方案
- 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.
这篇关于Eclipse - 在远程机器上运行项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文