Loading src/main/java/ecorp/easy/installer/AppConstants.java +8 −4 Original line number Diff line number Diff line Loading @@ -174,10 +174,14 @@ public abstract class AppConstants { * @return */ public static String getRootPath(){ if(System.getProperty("IDE", null) != null) return Paths.get("").toAbsolutePath().toString()+Separator; else return JavaHome+Separator+"bin"+Separator; String rootPath = JavaHome+Separator+"bin"+Separator; if(System.getProperty("IDE", null) != null) { rootPath = Paths.get("").toAbsolutePath().toString()+Separator; } if (rootPath.indexOf(" ")>0){ rootPath = "\"" + rootPath + "\""; } return rootPath; } /** Loading Loading
src/main/java/ecorp/easy/installer/AppConstants.java +8 −4 Original line number Diff line number Diff line Loading @@ -174,10 +174,14 @@ public abstract class AppConstants { * @return */ public static String getRootPath(){ if(System.getProperty("IDE", null) != null) return Paths.get("").toAbsolutePath().toString()+Separator; else return JavaHome+Separator+"bin"+Separator; String rootPath = JavaHome+Separator+"bin"+Separator; if(System.getProperty("IDE", null) != null) { rootPath = Paths.get("").toAbsolutePath().toString()+Separator; } if (rootPath.indexOf(" ")>0){ rootPath = "\"" + rootPath + "\""; } return rootPath; } /** Loading