1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-28 16:19:58 +02:00

Network fix

This commit is contained in:
Isaaku
2019-07-24 13:08:57 -05:00
parent c2e42f260e
commit 187fd3c5c6

View File

@@ -222,7 +222,8 @@ public class Utils {
}
private static File getJarDirectory() {
return new File(System.getProperty("java.class.path")).getParentFile();
String[] classPath = System.getProperty("java.class.path").split(";");
return classPath.length > 1 ? new File(System.getProperty("user.dir")) : new File(classPath[0]).getParentFile();
}
/**