mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-18 12:30:11 -07:00
[JRE Launcher] use java.library.path
This commit is contained in:
parent
886c8b8acf
commit
950784f81f
2 changed files with 13 additions and 21 deletions
|
|
@ -89,7 +89,7 @@ public final class Tools
|
|||
String launchClassPath = generateLaunchClassPath(profile.getVersion());
|
||||
System.out.println("Java Classpath: " + launchClassPath);
|
||||
if (LAUNCH_TYPE == LTYPE_CREATEJAVAVM) {
|
||||
javaArgList.add("-Djava.library.path=" + launchClassPath);
|
||||
javaArgList.add("-Djava.class.path=" + launchClassPath);
|
||||
} else {
|
||||
/*
|
||||
if (LAUNCH_TYPE == LTYPE_PROCESS) {
|
||||
|
|
@ -106,7 +106,7 @@ public final class Tools
|
|||
*/
|
||||
|
||||
getJavaArgs(ctx, javaArgList);
|
||||
|
||||
|
||||
javaArgList.add("-cp");
|
||||
/*
|
||||
if (versionInfo.mainClass.equals("net.minecraft.launchwrapper.Launch")) {
|
||||
|
|
@ -204,6 +204,7 @@ public final class Tools
|
|||
|
||||
overrideableArgList.add("-Djava.home=" + Tools.homeJreDir);
|
||||
overrideableArgList.add("-Djava.io.tmpdir=" + ctx.getCacheDir().getAbsolutePath());
|
||||
overrideableArgList.add("-Djava.library.path=" + JREUtils.LD_LIBRARY_PATH);
|
||||
|
||||
// Should be compatible?
|
||||
// overrideableArgList.add("-Dos.name=Android");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue