The simplest Java program is helloWorld. Just one class, one main function, and one statement: System.out.println("hello world");
Entered that program in Eclipse Oxygen.3A as a Java project, in a package called helloWorld in a class called App, running on Java 1.8.
Runs fine in Eclipse, I can see hello world in Eclipse console window. Runs fine, too, in a cmd window when started as java helloWorld.App.
Then - in Eclipse again - I entered a Run Configuration specifying the Main class as helloWorld.App and exported the project as a Runnable JAR file helloWorld.jar with Extract required libraries into generated JAR to some folder on the %PATH%.
In a cmd window I entered helloWorld.jar and expected to see hello world in that cmd window. But no, nothing. The program finsished correctly (I did other experiments, it does what it should) but System.out.println refuses to print in the cmd window.
What did I miss? E.g. which checkbox have I overlooked so that the exported JAR does not know what the system output is (I could not find one - but sometimes you are blind)?