在远程计算机上运行Eclipse项目 [英] Run Eclipse project on a remote machine

查看:160
本文介绍了在远程计算机上运行Eclipse项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Eclipse从本地计算机上创建Java项目。我试图在远程计算机上运行它。远程计算机是在Linux上运行的集群。现在我已经安装了远程驱动器并通过Eclipse编辑远程文件副本。但是,我看起来更健壮。有没有办法通过Eclipse无缝地执行此操作,即每次运行项目时,它都在远程计算机上运行?

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?

推荐答案


  • 将项目输出文件夹设置为您安装的远程文件夹(在Project Properties-> Java下)构建路径)。

  • 然后执行外部工具:ssh user @ rometesite -cjava -Xdebug -Xrunjdwp:server = y,transport = dt_socket,address = 4000,suspend = n Main

  • 在eclipse中启动远程Java应用程序(端口4000)

  • 参见 http://www.ibm.com/developerworks/opensource/library/os-eclipse-javadebug /index.html 有关远程调试的更多详细信息。

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

    这篇关于在远程计算机上运行Eclipse项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆