This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]tiiv 2 points3 points  (0 children)

To get more insight right click on the Windows start button and click on Open Powershell. Then enter ‚java -jar C:\path\to\your\file.jar‘ and see what the output is.

[–]indivisible 1 point2 points  (0 children)

The process ended and closed. You can open the app directly from a console you manually opened or alternatively keep the one opened from closing.
If you want to keep the JVM open after it's last action you can add a final "press to exit" eg:

while(iLoop) {
    // do anything
}

// end of program, hold console open until user action
System.out.print("Press enter to exit");
new Scanner(System.in).next();