How to see System.out for an executable jar?

I have a small java tool that should do some console output System.out.println(). But if I export it as a runnable jar and run it with javaw.exe -jar path\to\myfile.jar, it will be executed, but there will be no way out on the console!

What can i do wrong?

+5
source share
1 answer

javaw.exedoes not have a console associated with it. you need to use java.exe. If java is not on the path, enter the full path, for example.path\to\java.exe -jar path\to\myfile.jar

+12
source

All Articles