pi-dev500 / MinecraftMicrosoftPILauncher

2 stars 0 forks source link

Problem with custom java interpreter #7

Open NoozAbooz opened 3 years ago

NoozAbooz commented 3 years ago

A bit after launching vanilla 1.16.5, atlauncher straight up crashes.

Here's a video of what happened: simplescreenrecorder-2021-04-15_09.06.00.mkv.zip

NoozAbooz commented 3 years ago

Here's a still of the console right before it exited image

pi-dev500 commented 3 years ago

I think there is no crash on atlauncher but if you can retry and send me a copy of what happening in your terminal when running from terminal. If it's really an Atlauncher bug, it's not here we can discuss, but with Atlauncher developpers.

NoozAbooz commented 3 years ago

I think there is no crash on atlauncher but if you can retry and send me a copy of what happening in your terminal when running from terminal. If it's really an Atlauncher bug, it's not here we can discuss, but with Atlauncher developpers.

Well not a crash, but as you can see from the screenshot in my last message the lwjgl still doesn't work. I also dont understand how pointing the lwjgl path to a folder containing both lwjgl2 and lwjgl3 will make it switch when needed.

pi-dev500 commented 3 years ago

This is in tools/java and lasts lines of setupATpi.sh

NoozAbooz commented 3 years ago

This is in tools/java and lasts lines of setupATpi.sh

Oh ok, i'll test directly setting the lwjgl path to the folder and see if it works.

NoozAbooz commented 3 years ago

@pi-dev500 I changed it to -Dorg.lwjgl.librarypath=/home/pi/.local/share/ATlauncher/lwjgl/lwjgl3 instead of -Dorg.lwjgl.librarypath=/home/pi/.local/share/ATlauncher/lwjgl/ on ATLauncher and it worked, so looks like this might be a issue with your java interpreter code.

image

pi-dev500 commented 3 years ago

Can you send me a screenshot of yours atlauncher java settings?

NoozAbooz commented 3 years ago

Can you send me a screenshot of yours atlauncher java settings? image image

pi-dev500 commented 3 years ago

This is not the good java path. I think there is a problem with installer.

pi-dev500 commented 3 years ago

launch the pre-release installer and run sudo apt purge openjdk-11-jdk && sudo apt autoremove --purge -y

pi-dev500 commented 3 years ago

The readme is updated. You can see how to install beta with pi-apps.

NoozAbooz commented 3 years ago

launch the pre-release installer and run sudo apt purge openjdk-11-jdk && sudo apt autoremove --purge -y

So I uninstall the pre-release, remove java with your command, and reinstall the pre-release?

NoozAbooz commented 3 years ago

@pi-dev500 I uninstalled it using

rm -f ~/.config/autostart/ATlauncher.desktop
rm -f ~/.local/share/applications/ATlauncher.desktop
rm -rf ~/.local/share/ATlauncher

and then I removed all openjdk packages on my pi. I reinstalled the prelease with wget -qO- https://github.com/pi-dev500/MinecraftMicrosoftPILauncher/raw/main/ATlauncherPI/uninstall | bash and I still get the lwjlgl issue.

pi-dev500 commented 3 years ago

@mobilegmYT can you try the same jwm arguments with old launcher? Just -Dorg.lwjgl.librarypath=/home/pi/.local/share/ATlauncher/lwjgl

pi-dev500 commented 3 years ago

For me, with old launcher that works fine but not with latest snapshot.

pi-dev500 commented 3 years ago

Java path for atlauncher is normaly the same as old launcher.

NoozAbooz commented 3 years ago

@mobilegmYT can you try the same jwm arguments with old launcher? Just -Dorg.lwjgl.librarypath=/home/pi/.local/share/ATlauncher/lwjgl

I don't think its a issue with ATLauncher.

NoozAbooz commented 3 years ago

@pi-dev500 image

---- Minecraft Crash Report ----
// Daisy, daisy...

Time: 19/04/21 8:50 AM
Description: Initializing game

java.lang.ExceptionInInitializerError
    at dkd.<init>(SourceFile:146)
    at djz.<init>(SourceFile:440)
    at net.minecraft.client.main.Main.main(SourceFile:177)
Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl32.so
    at deo.<clinit>(SourceFile:46)
    ... 3 more
Caused by: java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl32.so
    at org.lwjgl.system.Library.loadSystem(Library.java:147)
    at org.lwjgl.system.Library.loadSystem(Library.java:67)
    at org.lwjgl.system.Library.<clinit>(Library.java:50)
    at org.lwjgl.system.MemoryAccessJNI.<clinit>(MemoryAccessJNI.java:13)
    at org.lwjgl.system.Pointer.<clinit>(Pointer.java:28)
    at org.lwjgl.system.Platform.mapLibraryNameBundled(Platform.java:80)
    at org.lwjgl.glfw.GLFW.<clinit>(GLFW.java:674)
    at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(DirectMethodHandle.java:330)
    at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(DirectMethodHandle.java:327)
    at java.lang.ClassValue.getFromHashMap(ClassValue.java:227)
    at java.lang.ClassValue.getFromBackup(ClassValue.java:209)
    at java.lang.ClassValue.get(ClassValue.java:115)
    at java.lang.invoke.DirectMethodHandle.checkInitialized(DirectMethodHandle.java:351)
    at java.lang.invoke.DirectMethodHandle.ensureInitialized(DirectMethodHandle.java:341)
    at java.lang.invoke.DirectMethodHandle.ensureInitialized(DirectMethodHandle.java:373)
    at deo.<clinit>(SourceFile:43)
    ... 3 more

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at dkd.<init>(SourceFile:146)
    at djz.<init>(SourceFile:440)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.main.Main.main(SourceFile:177)

-- System Details --
Details:
    Minecraft Version: 1.16.5
    Minecraft Version ID: 1.16.5
    Operating System: Linux (arm) version 5.10.17-v7l+
    Java Version: 1.8.0_251, Oracle Corporation
    Java VM Version: Java HotSpot(TM) Server VM (mixed mode), Oracle Corporation
    Memory: 179700672 bytes (171 MB) / 331710464 bytes (316 MB) up to 1060372480 bytes (1011 MB)
    CPUs: 4
    JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
    Launched Version: 1.16.5
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: ~~ERROR~~ NoClassDefFoundError: Could not initialize class org.lwjgl.glfw.GLFW
    GL Caps: 
    Using VBOs: Yes
    Is Modded: Probably not. Jar signature remains and client brand is untouched.
    Type: Client (map_client.txt)
    CPU: <unknown>
NoozAbooz commented 3 years ago

It's using java8 tho for some reason, or is it supposed to?

pi-dev500 commented 3 years ago

Very weird. Can you give me the outpout of tree -fi /opt/jdk && cat /opt/jdk/*/jre/bin/java and check executable in "java settings"

NoozAbooz commented 3 years ago

Output of the tree command:

pi@TwisterOS-RPN:~ $ tree -fi /opt/jdk
/opt/jdk
/opt/jdk/jdk1.8.0_251
/opt/jdk/jdk1.8.0_251/bin
/opt/jdk/jdk1.8.0_251/bin/appletviewer
/opt/jdk/jdk1.8.0_251/bin/extcheck
/opt/jdk/jdk1.8.0_251/bin/idlj
/opt/jdk/jdk1.8.0_251/bin/jar
/opt/jdk/jdk1.8.0_251/bin/jarsigner
/opt/jdk/jdk1.8.0_251/bin/java
/opt/jdk/jdk1.8.0_251/bin/javac
/opt/jdk/jdk1.8.0_251/bin/javadoc
/opt/jdk/jdk1.8.0_251/bin/javah
/opt/jdk/jdk1.8.0_251/bin/javap
/opt/jdk/jdk1.8.0_251/bin/java-rmi.cgi
/opt/jdk/jdk1.8.0_251/bin/jcmd
/opt/jdk/jdk1.8.0_251/bin/jconsole
/opt/jdk/jdk1.8.0_251/bin/jdb
/opt/jdk/jdk1.8.0_251/bin/jdeps
/opt/jdk/jdk1.8.0_251/bin/jhat
/opt/jdk/jdk1.8.0_251/bin/jinfo
/opt/jdk/jdk1.8.0_251/bin/jjs
/opt/jdk/jdk1.8.0_251/bin/jmap
/opt/jdk/jdk1.8.0_251/bin/jps
/opt/jdk/jdk1.8.0_251/bin/jrunscript
/opt/jdk/jdk1.8.0_251/bin/jsadebugd
/opt/jdk/jdk1.8.0_251/bin/jstack
/opt/jdk/jdk1.8.0_251/bin/jstat
/opt/jdk/jdk1.8.0_251/bin/jstatd
/opt/jdk/jdk1.8.0_251/bin/keytool
/opt/jdk/jdk1.8.0_251/bin/native2ascii
/opt/jdk/jdk1.8.0_251/bin/orbd
/opt/jdk/jdk1.8.0_251/bin/pack200
/opt/jdk/jdk1.8.0_251/bin/policytool
/opt/jdk/jdk1.8.0_251/bin/rmic
/opt/jdk/jdk1.8.0_251/bin/rmid
/opt/jdk/jdk1.8.0_251/bin/rmiregistry
/opt/jdk/jdk1.8.0_251/bin/schemagen
/opt/jdk/jdk1.8.0_251/bin/serialver
/opt/jdk/jdk1.8.0_251/bin/servertool
/opt/jdk/jdk1.8.0_251/bin/tnameserv
/opt/jdk/jdk1.8.0_251/bin/unpack200
/opt/jdk/jdk1.8.0_251/bin/wsgen
/opt/jdk/jdk1.8.0_251/bin/wsimport
/opt/jdk/jdk1.8.0_251/bin/xjc
/opt/jdk/jdk1.8.0_251/COPYRIGHT
/opt/jdk/jdk1.8.0_251/include
/opt/jdk/jdk1.8.0_251/include/classfile_constants.h
/opt/jdk/jdk1.8.0_251/include/jawt.h
/opt/jdk/jdk1.8.0_251/include/jdwpTransport.h
/opt/jdk/jdk1.8.0_251/include/jni.h
/opt/jdk/jdk1.8.0_251/include/jvmticmlr.h
/opt/jdk/jdk1.8.0_251/include/jvmti.h
/opt/jdk/jdk1.8.0_251/include/linux
/opt/jdk/jdk1.8.0_251/include/linux/jawt_md.h
/opt/jdk/jdk1.8.0_251/include/linux/jni_md.h
/opt/jdk/jdk1.8.0_251/jre
/opt/jdk/jdk1.8.0_251/jre/bin
/opt/jdk/jdk1.8.0_251/jre/bin/java
/opt/jdk/jdk1.8.0_251/jre/bin/java.1
/opt/jdk/jdk1.8.0_251/jre/bin/jjs
/opt/jdk/jdk1.8.0_251/jre/bin/keytool
/opt/jdk/jdk1.8.0_251/jre/bin/orbd
/opt/jdk/jdk1.8.0_251/jre/bin/pack200
/opt/jdk/jdk1.8.0_251/jre/bin/policytool
/opt/jdk/jdk1.8.0_251/jre/bin/rmid
/opt/jdk/jdk1.8.0_251/jre/bin/rmiregistry
/opt/jdk/jdk1.8.0_251/jre/bin/servertool
/opt/jdk/jdk1.8.0_251/jre/bin/tnameserv
/opt/jdk/jdk1.8.0_251/jre/bin/unpack200
/opt/jdk/jdk1.8.0_251/jre/COPYRIGHT
/opt/jdk/jdk1.8.0_251/jre/lib
/opt/jdk/jdk1.8.0_251/jre/lib/applet
/opt/jdk/jdk1.8.0_251/jre/lib/arm
/opt/jdk/jdk1.8.0_251/jre/lib/arm/client
/opt/jdk/jdk1.8.0_251/jre/lib/arm/client/libjsig.so -> ../libjsig.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/client/libjvm.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/client/Xusage.txt
/opt/jdk/jdk1.8.0_251/jre/lib/arm/jli
/opt/jdk/jdk1.8.0_251/jre/lib/arm/jli/libjli.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/jvm.cfg
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libattach.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libawt_headless.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libawt.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libawt_xawt.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libbci.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libdcpr.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libdt_socket.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libfontmanager.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libhprof.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libinstrument.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libj2gss.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libj2pcsc.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libj2pkcs11.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjaas_unix.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjava_crw_demo.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjava.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjawt.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjdwp.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjfr.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjpeg.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjsdt.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjsig.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjsoundalsa.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libjsound.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/liblcms.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libmanagement.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libmlib_image.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libnet.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libnio.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libnpt.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libresource.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libsaproc.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libsctp.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libsplashscreen.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libsunec.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libt2k.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libunpack.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libverify.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/libzip.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/server
/opt/jdk/jdk1.8.0_251/jre/lib/arm/server/libjsig.so -> ../libjsig.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/server/libjvm.so
/opt/jdk/jdk1.8.0_251/jre/lib/arm/server/Xusage.txt
/opt/jdk/jdk1.8.0_251/jre/lib/calendars.properties
/opt/jdk/jdk1.8.0_251/jre/lib/charsets.jar
/opt/jdk/jdk1.8.0_251/jre/lib/classlist
/opt/jdk/jdk1.8.0_251/jre/lib/cmm
/opt/jdk/jdk1.8.0_251/jre/lib/cmm/CIEXYZ.pf
/opt/jdk/jdk1.8.0_251/jre/lib/cmm/GRAY.pf
/opt/jdk/jdk1.8.0_251/jre/lib/cmm/LINEAR_RGB.pf
/opt/jdk/jdk1.8.0_251/jre/lib/cmm/PYCC.pf
/opt/jdk/jdk1.8.0_251/jre/lib/cmm/sRGB.pf
/opt/jdk/jdk1.8.0_251/jre/lib/content-types.properties
/opt/jdk/jdk1.8.0_251/jre/lib/currency.data
/opt/jdk/jdk1.8.0_251/jre/lib/ext
/opt/jdk/jdk1.8.0_251/jre/lib/ext/cldrdata.jar
/opt/jdk/jdk1.8.0_251/jre/lib/ext/dnsns.jar
/opt/jdk/jdk1.8.0_251/jre/lib/ext/jaccess.jar
/opt/jdk/jdk1.8.0_251/jre/lib/ext/localedata.jar
/opt/jdk/jdk1.8.0_251/jre/lib/ext/meta-index
/opt/jdk/jdk1.8.0_251/jre/lib/ext/nashorn.jar
/opt/jdk/jdk1.8.0_251/jre/lib/ext/sunec.jar
/opt/jdk/jdk1.8.0_251/jre/lib/ext/sunjce_provider.jar
/opt/jdk/jdk1.8.0_251/jre/lib/ext/sunpkcs11.jar
/opt/jdk/jdk1.8.0_251/jre/lib/ext/zipfs.jar
/opt/jdk/jdk1.8.0_251/jre/lib/flavormap.properties
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.bfc
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.properties.src
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.RedHat.5.bfc
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.RedHat.5.properties.src
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.RedHat.6.bfc
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.RedHat.6.properties.src
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.SuSE.10.bfc
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.SuSE.10.properties.src
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.SuSE.11.bfc
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.SuSE.11.properties.src
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.Turbo.bfc
/opt/jdk/jdk1.8.0_251/jre/lib/fontconfig.Turbo.properties.src
/opt/jdk/jdk1.8.0_251/jre/lib/fonts
/opt/jdk/jdk1.8.0_251/jre/lib/fonts/fonts.dir
/opt/jdk/jdk1.8.0_251/jre/lib/fonts/LucidaBrightDemiBold.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/fonts/LucidaBrightDemiItalic.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/fonts/LucidaBrightItalic.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/fonts/LucidaBrightRegular.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/fonts/LucidaSansDemiBold.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/fonts/LucidaSansRegular.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/fonts/LucidaTypewriterBold.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/fonts/LucidaTypewriterRegular.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/hijrah-config-umalqura.properties
/opt/jdk/jdk1.8.0_251/jre/lib/images
/opt/jdk/jdk1.8.0_251/jre/lib/images/cursors
/opt/jdk/jdk1.8.0_251/jre/lib/images/cursors/cursors.properties
/opt/jdk/jdk1.8.0_251/jre/lib/images/cursors/invalid32x32.gif
/opt/jdk/jdk1.8.0_251/jre/lib/images/cursors/motif_CopyDrop32x32.gif
/opt/jdk/jdk1.8.0_251/jre/lib/images/cursors/motif_CopyNoDrop32x32.gif
/opt/jdk/jdk1.8.0_251/jre/lib/images/cursors/motif_LinkDrop32x32.gif
/opt/jdk/jdk1.8.0_251/jre/lib/images/cursors/motif_LinkNoDrop32x32.gif
/opt/jdk/jdk1.8.0_251/jre/lib/images/cursors/motif_MoveDrop32x32.gif
/opt/jdk/jdk1.8.0_251/jre/lib/images/cursors/motif_MoveNoDrop32x32.gif
/opt/jdk/jdk1.8.0_251/jre/lib/jce.jar
/opt/jdk/jdk1.8.0_251/jre/lib/jexec
/opt/jdk/jdk1.8.0_251/jre/lib/jfr
/opt/jdk/jdk1.8.0_251/jre/lib/jfr/default.jfc
/opt/jdk/jdk1.8.0_251/jre/lib/jfr/profile.jfc
/opt/jdk/jdk1.8.0_251/jre/lib/jfr.jar
/opt/jdk/jdk1.8.0_251/jre/lib/jsse.jar
/opt/jdk/jdk1.8.0_251/jre/lib/jvm.hprof.txt
/opt/jdk/jdk1.8.0_251/jre/lib/logging.properties
/opt/jdk/jdk1.8.0_251/jre/lib/management
/opt/jdk/jdk1.8.0_251/jre/lib/management/jmxremote.access
/opt/jdk/jdk1.8.0_251/jre/lib/management/jmxremote.password.template
/opt/jdk/jdk1.8.0_251/jre/lib/management/management.properties
/opt/jdk/jdk1.8.0_251/jre/lib/management/snmp.acl.template
/opt/jdk/jdk1.8.0_251/jre/lib/management-agent.jar
/opt/jdk/jdk1.8.0_251/jre/lib/meta-index
/opt/jdk/jdk1.8.0_251/jre/lib/net.properties
/opt/jdk/jdk1.8.0_251/jre/lib/oblique-fonts
/opt/jdk/jdk1.8.0_251/jre/lib/oblique-fonts/fonts.dir
/opt/jdk/jdk1.8.0_251/jre/lib/oblique-fonts/LucidaSansDemiOblique.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/oblique-fonts/LucidaSansOblique.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/oblique-fonts/LucidaTypewriterBoldOblique.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/oblique-fonts/LucidaTypewriterOblique.ttf
/opt/jdk/jdk1.8.0_251/jre/lib/psfontj2d.properties
/opt/jdk/jdk1.8.0_251/jre/lib/psfont.properties.ja
/opt/jdk/jdk1.8.0_251/jre/lib/resources.jar
/opt/jdk/jdk1.8.0_251/jre/lib/rt.jar
/opt/jdk/jdk1.8.0_251/jre/lib/security
/opt/jdk/jdk1.8.0_251/jre/lib/security/blacklist
/opt/jdk/jdk1.8.0_251/jre/lib/security/blacklisted.certs
/opt/jdk/jdk1.8.0_251/jre/lib/security/cacerts
/opt/jdk/jdk1.8.0_251/jre/lib/security/java.policy
/opt/jdk/jdk1.8.0_251/jre/lib/security/java.security
/opt/jdk/jdk1.8.0_251/jre/lib/security/policy
/opt/jdk/jdk1.8.0_251/jre/lib/security/policy/limited
/opt/jdk/jdk1.8.0_251/jre/lib/security/policy/limited/local_policy.jar
/opt/jdk/jdk1.8.0_251/jre/lib/security/policy/limited/US_export_policy.jar
/opt/jdk/jdk1.8.0_251/jre/lib/security/policy/unlimited
/opt/jdk/jdk1.8.0_251/jre/lib/security/policy/unlimited/local_policy.jar
/opt/jdk/jdk1.8.0_251/jre/lib/security/policy/unlimited/US_export_policy.jar
/opt/jdk/jdk1.8.0_251/jre/lib/security/trusted.libraries
/opt/jdk/jdk1.8.0_251/jre/lib/sound.properties
/opt/jdk/jdk1.8.0_251/jre/lib/tzdb.dat
/opt/jdk/jdk1.8.0_251/jre/LICENSE
/opt/jdk/jdk1.8.0_251/jre/README
/opt/jdk/jdk1.8.0_251/jre/THIRDPARTYLICENSEREADME.txt
/opt/jdk/jdk1.8.0_251/jre/Welcome.html
/opt/jdk/jdk1.8.0_251/lib
/opt/jdk/jdk1.8.0_251/lib/arm
/opt/jdk/jdk1.8.0_251/lib/arm/jli
/opt/jdk/jdk1.8.0_251/lib/arm/jli/libjli.so
/opt/jdk/jdk1.8.0_251/lib/arm/libjawt.so
/opt/jdk/jdk1.8.0_251/lib/ct.sym
/opt/jdk/jdk1.8.0_251/lib/dt.jar
/opt/jdk/jdk1.8.0_251/lib/ir.idl
/opt/jdk/jdk1.8.0_251/lib/jconsole.jar
/opt/jdk/jdk1.8.0_251/lib/jexec
/opt/jdk/jdk1.8.0_251/lib/orb.idl
/opt/jdk/jdk1.8.0_251/lib/sa-jdi.jar
/opt/jdk/jdk1.8.0_251/lib/tools.jar
/opt/jdk/jdk1.8.0_251/LICENSE
/opt/jdk/jdk1.8.0_251/man
/opt/jdk/jdk1.8.0_251/man/ja -> ja_JP.UTF-8
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/appletviewer.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/extcheck.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/idlj.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jar.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jarsigner.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/java.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/javac.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/javadoc.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/javah.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/javap.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/javaws.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jcmd.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jconsole.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jdb.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jdeps.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jhat.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jinfo.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jjs.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jmap.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jps.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jrunscript.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jsadebugd.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jstack.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jstat.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jstatd.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/jvisualvm.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/keytool.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/native2ascii.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/orbd.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/pack200.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/policytool.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/rmic.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/rmid.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/rmiregistry.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/schemagen.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/serialver.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/servertool.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/tnameserv.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/unpack200.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/wsgen.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/wsimport.1
/opt/jdk/jdk1.8.0_251/man/ja_JP.UTF-8/man1/xjc.1
/opt/jdk/jdk1.8.0_251/man/man1
/opt/jdk/jdk1.8.0_251/man/man1/appletviewer.1
/opt/jdk/jdk1.8.0_251/man/man1/extcheck.1
/opt/jdk/jdk1.8.0_251/man/man1/idlj.1
/opt/jdk/jdk1.8.0_251/man/man1/jar.1
/opt/jdk/jdk1.8.0_251/man/man1/jarsigner.1
/opt/jdk/jdk1.8.0_251/man/man1/java.1
/opt/jdk/jdk1.8.0_251/man/man1/javac.1
/opt/jdk/jdk1.8.0_251/man/man1/javadoc.1
/opt/jdk/jdk1.8.0_251/man/man1/javah.1
/opt/jdk/jdk1.8.0_251/man/man1/javap.1
/opt/jdk/jdk1.8.0_251/man/man1/javaws.1
/opt/jdk/jdk1.8.0_251/man/man1/jcmd.1
/opt/jdk/jdk1.8.0_251/man/man1/jconsole.1
/opt/jdk/jdk1.8.0_251/man/man1/jdb.1
/opt/jdk/jdk1.8.0_251/man/man1/jdeps.1
/opt/jdk/jdk1.8.0_251/man/man1/jhat.1
/opt/jdk/jdk1.8.0_251/man/man1/jinfo.1
/opt/jdk/jdk1.8.0_251/man/man1/jjs.1
/opt/jdk/jdk1.8.0_251/man/man1/jmap.1
/opt/jdk/jdk1.8.0_251/man/man1/jps.1
/opt/jdk/jdk1.8.0_251/man/man1/jrunscript.1
/opt/jdk/jdk1.8.0_251/man/man1/jsadebugd.1
/opt/jdk/jdk1.8.0_251/man/man1/jstack.1
/opt/jdk/jdk1.8.0_251/man/man1/jstat.1
/opt/jdk/jdk1.8.0_251/man/man1/jstatd.1
/opt/jdk/jdk1.8.0_251/man/man1/jvisualvm.1
/opt/jdk/jdk1.8.0_251/man/man1/keytool.1
/opt/jdk/jdk1.8.0_251/man/man1/native2ascii.1
/opt/jdk/jdk1.8.0_251/man/man1/orbd.1
/opt/jdk/jdk1.8.0_251/man/man1/pack200.1
/opt/jdk/jdk1.8.0_251/man/man1/policytool.1
/opt/jdk/jdk1.8.0_251/man/man1/rmic.1
/opt/jdk/jdk1.8.0_251/man/man1/rmid.1
/opt/jdk/jdk1.8.0_251/man/man1/rmiregistry.1
/opt/jdk/jdk1.8.0_251/man/man1/schemagen.1
/opt/jdk/jdk1.8.0_251/man/man1/serialver.1
/opt/jdk/jdk1.8.0_251/man/man1/servertool.1
/opt/jdk/jdk1.8.0_251/man/man1/tnameserv.1
/opt/jdk/jdk1.8.0_251/man/man1/unpack200.1
/opt/jdk/jdk1.8.0_251/man/man1/wsgen.1
/opt/jdk/jdk1.8.0_251/man/man1/wsimport.1
/opt/jdk/jdk1.8.0_251/man/man1/xjc.1
/opt/jdk/jdk1.8.0_251/README.html
/opt/jdk/jdk1.8.0_251/release
/opt/jdk/jdk1.8.0_251/src.zip
/opt/jdk/jdk1.8.0_251/THIRDPARTYLICENSEREADME.txt

32 directories, 300 files

Output of cat command:

/ �(��4�4   (pdd�44�4�  TT�T���pp����DH����pp�p�DDQ�tdR�td���/lib/ld-linux-armhf.so.3GNU�GNU�ʭ.��!�I-�"�%
   �V K$� e �0�libpthread.so.0_Jv_RegisterClasseslibjli.so_ITM_deregisterTMCloneTableJLI_Launch__gmon_start___ITM_registerTMCloneTablelibdl.so.2libc.so.6abort__libc_start_mainlib.so$ORIGIN/../lib/arm/jli:$ORIGIN/../lib/armSUNWprivate_1.1GLIBC_2.4% q�N
�                                                            ��ii
@-�:����-����������Əʌ�����Əʌ�����Əʌ�����Əʌ�����@-�P���P@��P���(�M�0��
                                                                     ��� ��@����@��
 �� -�-�����-�                                                                     ��������� �� ��0��0�� 0��$0������(Ѝ�������������
              ��
                0����������8�<�؅0�� ��0��0��S��/����@-� �� 0��0`�S���0��S�3�/���(@-�(��(0��0`�C1��?����� ��R�2�/���((@-�@��0��S�������0��0�����($�@-�0��S�
0��S�
3�/@��������E-�`��HP��H���P��
���
�e�p�����z���J�����@��0����� ��@��3�/�
T������������/@-���1.8.0_251-b081.8java@����|�%���
<������|���                                       �
�
 ���o�����o���ot����������GCC: (crosstool-NG linaro-1.13.1-2012.09-20120921 - Linaro GCC 2012.09) 4.7.2 20120910 (prerelease)A0aeabi&6
�ava.debuginfo�m.symtab.strtab.shstrtab.interp.note.ABI-tag.note.gnu.build-id.hash.dynsym.dynstr.gnu.version.gnu.version_r.rel.dyn.rel.plt.init.text.fini.rodata.ARM.exidx.eh_frame.init_array.fini_array.jcr.dynamic.got.data.bss.comment.ARM.attributes.gnu_debuglink�T#p�p 1���$D���HJ
                                                                                           ����R|�|�Z���ot�tg���o���@v  ă�          

Apparently, the java executable was set to java 11, and I couldn't change it to java 8 (since that's the execuitable that has modified lwjgl code I assume) no matter what. I uninstalled java 11, and switched it to java 8, but it still wouldn't launch.

pi-dev500 commented 3 years ago

What code do you launch to install atlauncher?(beta)

NoozAbooz commented 3 years ago

What code do you launch to install atlauncher?(beta)

I used the desktop shortcut your script generated.

pi-dev500 commented 3 years ago

Not for launch, for install because there is some weird things. But if you use standard minecraft java installed with pi-apps, The updater must be unabled. The java interpreter is not writen in shell on your pi but must be.

pi-dev500 commented 3 years ago

Run this code and retry

echo Configure java...

sudo mv /opt/jdk/jdk1.8.0_251/jre/bin/java /opt/jdk/jdk1.8.0_251/jre/bin/java.1

sudo wget -q https://raw.githubusercontent.com/pi-dev500/MinecraftMicrosoftPILauncher/main/tools/java -O /opt/jdk/jdk1.8.0_251/jre/bin/java

sudo chmod +x /opt/jdk/jdk1.8.0_251/jre/bin/java

sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_251/bin/java 0 || exit 1

sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_251/bin/javac 0 || exit 1

if [ "$MACHINE" = "aarch64" ]; then

echo Setting Open jdk

sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-arm64/bin/java || exit 1

sudo update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-arm64/bin/javac || exit 1

else

echo Setting Oracle jdk

sudo update-alternatives --set java /opt/jdk/jdk1.8.0_251/bin/java || exit 1

sudo update-alternatives --set javac /opt/jdk/jdk1.8.0_251/bin/javac || exit 1

fi

wget -q https://raw.githubusercontent.com/pi-dev500/MinecraftMicrosoftPILauncher/main/tools/listmc1.12- -O $HOME/.local/share/ATlauncher/listmc1.12-
NoozAbooz commented 3 years ago

Run this code and retry

echo Configure java...

sudo mv /opt/jdk/jdk1.8.0_251/jre/bin/java /opt/jdk/jdk1.8.0_251/jre/bin/java.1

sudo wget -q https://raw.githubusercontent.com/pi-dev500/MinecraftMicrosoftPILauncher/main/tools/java -O /opt/jdk/jdk1.8.0_251/jre/bin/java

sudo chmod +x /opt/jdk/jdk1.8.0_251/jre/bin/java

sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_251/bin/java 0 || exit 1

sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_251/bin/javac 0 || exit 1

if [ "$MACHINE" = "aarch64" ]; then

echo Setting Open jdk

sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-arm64/bin/java || exit 1

sudo update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-arm64/bin/javac || exit 1

else

echo Setting Oracle jdk

sudo update-alternatives --set java /opt/jdk/jdk1.8.0_251/bin/java || exit 1

sudo update-alternatives --set javac /opt/jdk/jdk1.8.0_251/bin/javac || exit 1

fi

wget -q https://raw.githubusercontent.com/pi-dev500/MinecraftMicrosoftPILauncher/main/tools/listmc1.12- -O $HOME/.local/share/ATlauncher/listmc1.12-

It worked!!!!!!!!!! I can try 1.12 now and see. One suggestion I have is to change the pi-apps installer to just have the script in the install-32 instead of downloading it from github,

NoozAbooz commented 3 years ago

(And also since the install script installs java 11 from apt, you might want to also change atlauncher to use use java 8 as the default since that's the one with the modded interpreter)

NoozAbooz commented 3 years ago

And also another issue, 1.16.5 launches fine and so does 1.12, but before 1.12 gets to the main menu it crashes and atlauncher says this. image

pi-dev500 commented 3 years ago

You think? See my readme. This was already added

pi-dev500 commented 3 years ago

'# ATlauncher BETA for the raspberry pi'

pi-dev500 commented 3 years ago

Can you run

cat /opt/jdk/*/jre/bin/java

and send me what that return now?

pi-dev500 commented 3 years ago

If that doesn't return a shell script , please use a machine without minecraft installed by pi-apps or modify setupATpi.sh to install jdk to an other destination. For exemple /opt/mcjdk

1.12 works perfectly for me and the problems you encounter are related to compatibility problems with jdk installer of mc java app onthe pi-apps.

NoozAbooz commented 3 years ago

cat /opt/jdk/*/jre/bin/java

pi@TwisterOS-RPN:~ $ cat /opt/jdk/*/jre/bin/java

#!/bin/bash

function patchlwjgl {
    lwjgl=3
    cat $HOME/.local/share/ATlauncher/listmc1.12- | while read line;do 
        if echo $@ | grep $line>/dev/null;then 
            lwjgl=2
            echo "

running /opt/jdk/jdk1.8.0_251/jre/bin/java.1 $(for x in $@;do if echo "$x" | grep "Dorg.lwjgl.librarypath=">/dev/null;then echo -n " $x/lwjgl2";else echo -n " $x";fi ;done)" 
            /opt/jdk/jdk1.8.0_251/jre/bin/java.1 $(for x in $@;do if echo "$x" | grep "Dorg.lwjgl.librarypath=">/dev/null;then echo -n " $x/lwjgl2";else echo -n " $x";fi ;done)
            exit $?
        fi
    done
    echo "

running /opt/jdk/jdk1.8.0_251/jre/bin/java.1 $(for x in $@;do if echo "$x" | grep "Dorg.lwjgl.librarypath=">/dev/null;then echo -n " $x/lwjgl3";else echo -n " $x";fi ;done)" 
    /opt/jdk/jdk1.8.0_251/jre/bin/java.1 $(for x in $@;do if echo "$x" | grep "Dorg.lwjgl.librarypath=">/dev/null;then echo -n " $x/lwjgl3";else echo -n " $x";fi ;done)
    exit $?
}

if echo $@ | grep "Djava.library.path=">/dev/null;then
    patchlwjgl $@
else
    /opt/jdk/jdk1.8.0_251/jre/bin/java.1 "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
fi

@pi-dev500 response: Here it's the good output.

NoozAbooz commented 3 years ago

'# ATlauncher BETA for the raspberry pi'

What is difference between the beta and regular one?

@pi-dev500 Answer: @mobilegmYT ,the beta have the latests changes and not the simple release(stable) Here we are working on beta release or pre-release. See the commits to verify.

NoozAbooz commented 3 years ago

@pi-dev500 BTW, atlauncher boots mc with java 11 by default. you need to switch it to use java 8 by default.