mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 13:30:15 -07:00
[Mod install] Bug fix could not load main class
This commit is contained in:
parent
c7a10421d9
commit
11fb5bb254
2 changed files with 4 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
||||||
});
|
});
|
||||||
|
|
||||||
final File modFile = (File) getIntent().getExtras().getSerializable("modFile");
|
final File modFile = (File) getIntent().getExtras().getSerializable("modFile");
|
||||||
final String javaArgs = getIntent().getExtras().getString("javaArgs", "");
|
final String javaArgs = getIntent().getExtras().getString("javaArgs");
|
||||||
|
|
||||||
mTextureView = findViewById(R.id.installmod_surfaceview);
|
mTextureView = findViewById(R.id.installmod_surfaceview);
|
||||||
|
|
||||||
|
|
@ -204,6 +204,8 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
||||||
|
|
||||||
// System.out.println(Arrays.toString(javaArgList.toArray(new String[0])));
|
// System.out.println(Arrays.toString(javaArgList.toArray(new String[0])));
|
||||||
|
|
||||||
|
appendlnToLog("Info: Java arguments: " + Arrays.toString(javaArgList.toArray(new String[0])));
|
||||||
|
|
||||||
Tools.launchJavaVM(this, javaArgList);
|
Tools.launchJavaVM(this, javaArgList);
|
||||||
} catch (Throwable th) {
|
} catch (Throwable th) {
|
||||||
Tools.showError(this, th, true);
|
Tools.showError(this, th, true);
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ public final class Tools
|
||||||
|
|
||||||
public static void launchJavaVM(final LoggableActivity ctx, final List<String> args) throws Throwable {
|
public static void launchJavaVM(final LoggableActivity ctx, final List<String> args) throws Throwable {
|
||||||
JREUtils.relocateLibPath(ctx);
|
JREUtils.relocateLibPath(ctx);
|
||||||
ctx.appendlnToLog("LD_LIBRARY_PATH = " + JREUtils.LD_LIBRARY_PATH);
|
// ctx.appendlnToLog("LD_LIBRARY_PATH = " + JREUtils.LD_LIBRARY_PATH);
|
||||||
|
|
||||||
List<String> javaArgList = new ArrayList<String>();
|
List<String> javaArgList = new ArrayList<String>();
|
||||||
javaArgList.add(Tools.homeJreDir + "/bin/java");
|
javaArgList.add(Tools.homeJreDir + "/bin/java");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue