From 10c54961dada878620b4aa251561f9319f94fb21 Mon Sep 17 00:00:00 2001
From: brutzman <brutzman@nps.edu>
Date: Fri, 25 Oct 2024 04:24:54 -0700
Subject: [PATCH] improved java versioning information, fix indentation

---
 src/java/org/web3d/util/Xj3dVersionInformation.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/java/org/web3d/util/Xj3dVersionInformation.java b/src/java/org/web3d/util/Xj3dVersionInformation.java
index 8a92a81b..2d7d309d 100644
--- a/src/java/org/web3d/util/Xj3dVersionInformation.java
+++ b/src/java/org/web3d/util/Xj3dVersionInformation.java
@@ -73,8 +73,9 @@ public class Xj3dVersionInformation {
     public static String JOGL_VERSION;
 
     // https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
-    public static final String OS_JAVA_VERSION_MESSAGE  = "  Operating system: " + System.getProperty("os.name") + SP + System.getProperty("os.version") + "\n" +
-                                                          "  Java environment: " + System.getProperty("java.vendor") + SP + JAVA_VERSION;
+    // https://stackoverflow.com/questions/5103121/how-to-find-the-jvm-version-from-a-program
+    public static final String OS_JAVA_VERSION_MESSAGE  = "   Operating system: " + System.getProperty("os.name") + SP + System.getProperty("os.version") + "\n" +
+                                                          "   Java environment: " + System.getProperty("java.runtime.name") + SP + JAVA_VERSION;
     /**
      * The release version, must first be initialized by class constructor. Milestone format will be
      * <code>M<i>MainVersion</i>_<i>DevRelease#</i></code>
-- 
GitLab