System.out.println("\nPlease enter another integer: ");
} // End while loop

System.out.println("End of valid integers, terminating program");

} // End main
} // End class

This code compiles and runs correctly from the commandline. Now, because I'm writing this for my computer illiterate math teacher, I'd like to create an executable file (.jar?) which she can simply double click to run

Could you try it out using my code? When I double click the jar file, it doesn't seem to do anything. No errors, but no output either

I was hoping that the program would run in the terminal like it normally does. Is this because I don't use any GUI?

Thanks for your help

I had tried it and I could run the JAR file nicely in the command line with the following command:

Code (Text):

java -jar ZnX.jar

If you try to run the JAR file by double-clicking on the file and you use Windows, the icon of the JVM should appear in the tray icon.
Otherwise, there might be something wrong with the setting of your JVM under Windows.