mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 09:07:48 -04:00
[Mod install] Bug fix could not load main class
This commit is contained in:
parent
c7a10421d9
commit
11fb5bb254
@ -54,7 +54,7 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
||||
});
|
||||
|
||||
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);
|
||||
|
||||
@ -204,6 +204,8 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
||||
|
||||
// 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);
|
||||
} catch (Throwable th) {
|
||||
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 {
|
||||
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>();
|
||||
javaArgList.add(Tools.homeJreDir + "/bin/java");
|
||||
|
Loading…
x
Reference in New Issue
Block a user