Normal
Ich finde, du machst das VIEL zu kompliziert.[code=Java]public static void main(String... args) throws IOException { Path myJar = Paths.get("C:", "Users", "Admin", "Documents", "unzip"); Runtime.getRuntime().exec( "java -jar " + myJar.resolve("unzipper.jar") );}[/code]und imho noch besser:[code=Java]public static void main(String... args) throws IOException { Path myJar = Paths.get(System.getProperty("user.home"), //falls du mit Admin angemeldet bist "Documents", "unzip"); Runtime.getRuntime().exec( "java -jar " + myJar.resolve("unzipper.jar") );}[/code]
Ich finde, du machst das VIEL zu kompliziert.
[code=Java]public static void main(String... args) throws IOException {
Path myJar = Paths.get("C:", "Users", "Admin", "Documents", "unzip");
Runtime.getRuntime().exec( "java -jar " + myJar.resolve("unzipper.jar") );
}[/code]
und imho noch besser:
Path myJar = Paths.get(System.getProperty("user.home"), //falls du mit Admin angemeldet bist
"Documents", "unzip");