We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3519d38 commit d7aaf0aCopy full SHA for d7aaf0a
1 file changed
src/main/java/org/scijava/plugins/scripting/javascript/JavaScriptScriptLanguage.java
@@ -79,6 +79,12 @@ public boolean isRhino() {
79
return getEngineName().contains("Rhino");
80
}
81
82
+ /** Returns true iff the JVM appears to be the OpenJDK version of Java. */
83
+ public boolean isOpenJDK() {
84
+ final String vmName = System.getProperty("java.vm.name");
85
+ return vmName != null && vmName.startsWith("OpenJDK");
86
+ }
87
+
88
// -- ScriptEngineFactory methods --
89
90
@Override
0 commit comments