Eclipse:导出运行配置 [英] Eclipse: export running configuration

查看:95
本文介绍了Eclipse:导出运行配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个复杂的Java应用程序与eclipse,使用许多.jar库包含在项目文件夹。



有一个快速的方法来导出运行的应用程序的配置这让我从shell运行它(我实际上不需要在机器周围移动,所以没有jar导出或类似的东西)。



我只需要分离从Eclipse执行,但是由于项目有很多设置,我想自动导出一个脚本(也许.sh或一个简单的长行)。

解决方案

您可以在调试选项卡上获取完整的配置命令,更具体地说是调试视图。


  1. 运行您的应用程序

  2. 转到您的调试视图

  3. 应用程序中应该有一个条目(在调试视图中)刚刚执行

  4. 右键单击引用java.exe或javaw.exe的节点,然后选择属性

  5. 在d ialog弹出你会看到命令行,其中包括所有的jar,参数等。


I wrote a complex Java application with eclipse that uses many .jar libraries included into project folder.

Is there a quick way to export a running configuration of the application that allows me to run it from shell (I don't actually need to move it around machines, so no jar export or similar things).

I just need to detach the execution from Eclipse, but since project has many settings I would like to export a script (maybe .sh or just a plain long line) automatically..

解决方案

You can get the full command executed by your configuration on the Debug tab, or more specifically the Debug view.

  1. Run your application
  2. Go to your Debug perspective
  3. There should be an entry in there (in the Debug View) for the app you've just executed
  4. Right-click the node which references java.exe or javaw.exe and select Properties
  5. In the dialog that pops up you'll see the Command Line which includes all jars, parameters, etc

这篇关于Eclipse:导出运行配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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