| @@ -36,7 +36,7 @@ public class Version { · 35 unmodified lines |
| 36 | "@@java_version@@"; | 36 | "@@java_version@@"; |
| 37 | | 37 | |
| 38 | private static final String java_runtime_name = | 38 | private static final String java_runtime_name = |
| 39 | "@@java_runtime_name@@"; | 39 | "@@java_runtime_name@@"; |
| 40 | | 40 | |
| 41 | private static final String java_runtime_version = | 41 | private static final String java_runtime_version = |
| 42 | "@@java_runtime_version@@"; | 42 | "@@java_runtime_version@@"; |
| @@ -90,23 +90,23 @@ public class Version { · 47 unmodified lines |
| 90 | boolean isHeadless = false; | 90 | boolean isHeadless = false; |
| 91 | | 91 | |
| 92 | /* Report that we're running headless if the property is true */ | 92 | /* Report that we're running headless if the property is true */ |
| 93 | String headless = System.getProperty("java.awt.headless"); | 93 | String headless = System.getProperty("java.awt.headless"); |
| 94 | if ( (headless != null) && (headless.equalsIgnoreCase("true")) ) { | 94 | if ( (headless != null) && (headless.equalsIgnoreCase("true")) ) { |
| 95 | isHeadless = true; | 95 | isHeadless = true; |
| 96 | } | 96 | } |
| 97 | | 97 | |
| 98 | /* First line: platform version. */ | 98 | /* First line: platform version. */ |
| 99 | ps.println(launcher_name + " version \"" + java_version + "\""); | 99 | ps.println(launcher_name + " version \"" + java_version + "\""); |
| 100 | | 100 | |
| 101 | /* Second line: runtime version (ie, libraries). */ | 101 | /* Second line: runtime version (ie, libraries). */ |
| 102 | | 102 | |
| 103 | ps.print(java_runtime_name + " (build " + java_runtime_version); | 103 | ps.print(java_runtime_name + " (build " + java_runtime_version); |
| 104 | | 104 | |
| 105 | if (java_runtime_name.indexOf("Embedded") != -1 && isHeadless) { | 105 | if (java_runtime_name.indexOf("Embedded") != -1 && isHeadless) { |
| 106 | // embedded builds report headless state | 106 | // embedded builds report headless state |
| 107 | ps.print(", headless"); | 107 | ps.print(", headless"); |
| 108 | } | 108 | } |
| 109 | ps.println(')'); | 109 | ps.println(')'); |
| 110 | | 110 | |
| 111 | /* Third line: JVM information. */ | 111 | /* Third line: JVM information. */ |
| 112 | String java_vm_name = System.getProperty("java.vm.name"); | 112 | String java_vm_name = System.getProperty("java.vm.name"); |
| @@ -333,9 +333,3 @@ public class Version { · 220 unmodified lines |
| 333 | private static native void getJdkVersionInfo(); | 333 | private static native void getJdkVersionInfo(); |
| 334 | | 334 | |
| 335 | } | 335 | } |
| 336 | | | |
| 337 | // Help Emacs a little because this file doesn't end in .java. | | |
| 338 | // | | |
| 339 | // Local Variables: *** | | |
| 340 | // mode: java *** | | |
| 341 | // End: *** | | |