1

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

4

1 回答 1

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. 
于 2012-07-26T09:44:57.613 回答