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