We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f0adb commit df02193Copy full SHA for df02193
contrib/platform/test/com/sun/jna/platform/win32/Win32ServiceDemo.java
@@ -122,7 +122,7 @@ public static boolean install() {
122
}
123
124
125
- String JAVA_HOME = System.getenv("JAVA_HOME");
+ String JAVA_HOME = System.getProperty("java.home", System.getenv("JAVA_HOME"));
126
String javaBinary = "java.exe";
127
if(JAVA_HOME != null) {
128
javaBinary = "\"" + new File(JAVA_HOME, "\\bin\\java.exe").getAbsolutePath() + "\"";
0 commit comments