diff --git a/pom.xml b/pom.xml
index 55e1ada..68eb6d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
info.istlab.IoTP
IoTP
jar
- 0.223
+ 0.224
IoTP
http://maven.apache.org
diff --git a/src/main/java/info/istlab/IoTP/App.java b/src/main/java/info/istlab/IoTP/App.java
index 1de7fed..b42ba5d 100644
--- a/src/main/java/info/istlab/IoTP/App.java
+++ b/src/main/java/info/istlab/IoTP/App.java
@@ -148,10 +148,10 @@
ProcessBuilder processBuilder;
if (App.isWindows){
pathfile = pathfile.replaceAll("\\\\","\\\\\\\\");
- com = "timeout 2 && java -jar " + pathfile;
+ com = "timeout 3 && java -jar " + new File(pathfile).getName();
processBuilder = new ProcessBuilder("cmd", "/c", com);
} else {
- com = "sleep 2 ; java -jar " + pathfile;
+ com = "sleep 3 ; java -jar " + pathfile;
processBuilder = new ProcessBuilder("bash", "-c", com);
}
System.out.println(com);
diff --git a/src/main/java/info/istlab/IoTP/Launcher.java b/src/main/java/info/istlab/IoTP/Launcher.java
index d62f046..e2ad7f7 100644
--- a/src/main/java/info/istlab/IoTP/Launcher.java
+++ b/src/main/java/info/istlab/IoTP/Launcher.java
@@ -26,7 +26,7 @@
public class Launcher extends JFrame implements MouseInputListener, KeyListener {
public static Launcher theapp;
- public static String version = "0.223";
+ public static String version = "0.224";
// JPanel mainP;
File root;
JTree tree;
@@ -204,7 +204,7 @@
}
public void openExecPath() {
- openFolder(App.execPath.toFile());
+ openFolder(App.execPath.getParent().toFile());
}
public void openFolder(File path) {