1.>如何执行java -Xmx512m -jar a.jar yourfile.txt。来自eclipse @junit
答案 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.