Skip to content

Commit

Permalink
Update Server.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Osiris-Team authored Jan 27, 2024
1 parent 808a36c commit 9aa353e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/osiris/autoplug/client/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ private static void createProcess() throws Exception {
File javaBinFolder = new File(javaInstallationFolder+"/bin");
if(!javaBinFolder.exists()) {
AL.debug(Server.class, "Failed to find Java bin in: "+javaBinFolder);
javaBinFolder = new File(javaInstallationFolder + "/Home/bin"); // For macos support
javaBinFolder = new File(javaInstallationFolder + "/Contents/Home/bin"); // For macos support
}
if(!javaBinFolder.exists()) {
AL.debug(Server.class, "Failed to find Java bin in: "+javaBinFolder);
javaBinFolder = new File(javaInstallationFolder + "/HOME/bin"); // For macos support
javaBinFolder = new File(javaInstallationFolder + "/Contents/HOME/bin"); // For macos support
}
if (!javaBinFolder.exists()){
AL.debug(Server.class, "Failed to find Java bin in: "+javaBinFolder);
Expand Down

0 comments on commit 9aa353e

Please sign in to comment.