Add useful startup information.

This commit is contained in:
Michael Lipp 2023-08-24 13:56:23 +02:00
parent c13344d0e2
commit 5fe71670e2
2 changed files with 11 additions and 4 deletions

View file

@ -576,9 +576,12 @@ public class Runner extends Component {
public static void main(String[] args) {
// The Runner is the root component
try {
Logger.getLogger(Runner.class.getName())
.fine(() -> "Version: "
+ Runner.class.getPackage().getImplementationVersion());
var logger = Logger.getLogger(Runner.class.getName());
logger.fine(() -> "Running on " + System.getProperty("java.vm.name")
+ " (" + System.getProperty("java.vm.version") + ")"
+ " from " + System.getProperty("java.vm.vendor"));
logger.fine(() -> "Version: "
+ Runner.class.getPackage().getImplementationVersion());
CommandLineParser parser = new DefaultParser();
// parse the command line arguments
final Options options = new Options();