如何执行java -Xmx512m -jar a.jar yourfile.txt。来自eclipse的命令

时间:2012-07-26 09:30:14

标签: java eclipse

1.>如何执行java -Xmx512m -jar a.jar yourfile.txt。来自eclipse @junit

1 个答案:

答案 0 :(得分:1)

您需要使用java -jar命令运行它。为了做到这一点:

转到Run> External Tools> External tools Configurations

Create new item under "Program"

填写以下内容。

Location: <JAVA_HOME>/bin/java 

Working directory: The working directory for your jar program (might be it's location)

Arguments: -Xmx512m -jar a.jar yourfile.txt.