Besseres installieren der Bibliotheken
This commit is contained in:
parent
12f14b5dee
commit
da0daef4c0
7 changed files with 4 additions and 28 deletions
0
forge.jar.log
Normal file
0
forge.jar.log
Normal file
BIN
modpack/1.10.2/forge-1.10.2-12.18.2.2107-installer.jar
Normal file
BIN
modpack/1.10.2/forge-1.10.2-12.18.2.2107-installer.jar
Normal file
Binary file not shown.
BIN
modpack/1.7.10/forge-1.7.10-10.13.4.1614-1.7.10-installer.jar
Normal file
BIN
modpack/1.7.10/forge-1.7.10-10.13.4.1614-1.7.10-installer.jar
Normal file
Binary file not shown.
BIN
modpack/Minecraft.jar
Normal file
BIN
modpack/Minecraft.jar
Normal file
Binary file not shown.
BIN
modpack/modpack/Minecraft.jar
Normal file
BIN
modpack/modpack/Minecraft.jar
Normal file
Binary file not shown.
BIN
modpack/modpack/forge.jar
Normal file
BIN
modpack/modpack/forge.jar
Normal file
Binary file not shown.
|
@ -9,7 +9,6 @@ package forgemodpackbuilder;
|
||||||
*
|
*
|
||||||
* @author simonr
|
* @author simonr
|
||||||
*/
|
*/
|
||||||
import java.io.*;
|
|
||||||
|
|
||||||
public class ProcExecExamples {
|
public class ProcExecExamples {
|
||||||
|
|
||||||
|
@ -17,34 +16,11 @@ public class ProcExecExamples {
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
|
||||||
if (isWindowsSystem()) {
|
|
||||||
System.out.println("Windows");
|
|
||||||
if (funktion == 1) {
|
if (funktion == 1) {
|
||||||
Runtime.getRuntime().exec("cmd /c C:\\Users\\" + System.getProperty("user.home") + "\\AppData\\Roaming\\.minecraft\\Minecraft.jar");
|
Runtime.getRuntime().exec("java -jar ./modpack/Minecraft.jar");
|
||||||
}
|
}
|
||||||
if (funktion == 2) {
|
if (funktion == 2) {
|
||||||
Runtime.getRuntime().exec("cmd /c C:\\Users\\" + System.getProperty("user.home") + "\\AppData\\Roaming\\.minecraft\\forge.jar");
|
Runtime.getRuntime().exec("java -jar ./modpack/modpack/forge.jar");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isLinuxSystem()) {
|
|
||||||
System.out.println("Linux");
|
|
||||||
if (funktion == 1) {
|
|
||||||
Runtime.getRuntime().exec("java -jar " + System.getProperty("user.home") + "/.minecraft/Minecraft.jar");
|
|
||||||
}
|
|
||||||
if (funktion == 2) {
|
|
||||||
Runtime.getRuntime().exec("java -jar " + System.getProperty("user.home") + "/.minecraft/forge.jar");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static boolean isWindowsSystem() {
|
|
||||||
String osName = System.getProperty("os.name").toLowerCase();
|
|
||||||
return osName.indexOf("windows") >= 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static boolean isLinuxSystem() {
|
|
||||||
String osName = System.getProperty("os.name").toLowerCase();
|
|
||||||
return osName.indexOf("linux") >= 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue