如何知道Eclipse用来运行java程序的命令行? [英] How to know the command line used by Eclipse to run the java program?
问题描述
我在Eclipse外部执行我的Java示例hello world程序时遇到问题,而每次按下运行菜单按钮时Eclipse都可以执行它。所以我想知道Eclipse用来执行java程序的命令行。
I have a problem executing my java sample "hello world" program outside Eclipse while Eclipse can execute it whenever I push the Run menu button. So I want to know the command line Eclipse uses to execute the java program.
推荐答案
您可以查看其他参数参数
, classpath
,环境变量
等eclipse可能用来编译程序,来自运行配置
窗口,当您单击eclipse中运行
按钮旁边的下拉按钮时,该窗口显示为下拉列表。
You can check the other parameters arguments
, classpath
, environment variables
etc. that eclipse might be using to compile your program, from the Run Configurations
window, which appears as a dropdown when you click the drop-down button next to the Run
button in eclipse.
要获取完整的命令行,您可以从窗口>显示视图>其他... 调试视图
code>。右键单击上次启动并转到属性。 Eclipse将列出确切的命令行。
To get the full command line, you can open the Debug view
from Window>Show View>Other...
. Right click on the last launch and go to properties. Eclipse will list the exact command line.
这篇关于如何知道Eclipse用来运行java程序的命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!