Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个小的 java 工具,它应该通过System.out.println(). 但是如果我将它导出为可运行的 jar 并运行它javaw.exe -jar path\to\myfile.jar,它会被执行但控制台上没有输出!
System.out.println()
javaw.exe -jar path\to\myfile.jar
我可能做错了什么?
javaw.exe没有与之关联的控制台。你需要使用java.exe. 如果 java 不在路径上,请输入完整路径,例如path\to\java.exe -jar path\to\myfile.jar
javaw.exe
java.exe
path\to\java.exe -jar path\to\myfile.jar