Download raw body.
NEW WIP: games/prismlauncher
On Sun, 25 Aug 2024 08:55:01 +0200
"Lorenz (xha)" <me@xha.li> wrote:
> hi issy,
>
> this port builds, but doesn't quite work for me (i.e. get minceraft
> running). a few issues:
Thanks for looking this over.
> i think the readme should specify that the scripts you wrote are
> wrapper-commands, not the java versions themselves? setting it
> as a normal java version does not work
This is a good point. I'm working on getting things functional for now.
I was really disorganised when making this so these scripts may or may
not work despite what I said in this thread. I'll attach what I have
currently here in this mail. The wrapper scripts went through many
iterations some worked, some didn't, and as you see, lwjgl is still
throwing a fit:
> when i start a minecraft version, the wrapper command tries to exec
> "/usr/local/jdk-21/bin/java /usr/local/jdk-21/bin/java/..." and not
> the "/usr/local/jdk-21/bin/java/" part only once. changing this
> in the wrapper-script makes minecraft run, at least:
>
> -${JAVA_HOME}/bin/java ${args}
> +exec ${args}
>
> however, it will soon complain that it will then complain that it
> cannot find lwjgl:
>
> java.lang.NoClassDefFoundError: Could not initialize class
> com.mojang.blaze3d.systems.RenderSystem at ab.a(SourceFile:66)
> at evi.a(SourceFile:2605)
> at evi.a(SourceFile:2580)
> at net.minecraft.client.main.Main.main(SourceFile:233)
> at
> org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100)
> at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) at
> org.prismlauncher.EntryPoint.main(EntryPoint.java:70) Caused by:
> java.lang.ExceptionInInitializerError: Exception
> java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.so
> [in thread "Render thread"] at
> org.lwjgl.system.Library.loadSystem(Library.java:164) at
> org.lwjgl.system.Library.loadSystem(Library.java:63) at
> org.lwjgl.system.Library.<clinit>(Library.java:51) at
> org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:100) at
> eoz.<clinit>(SourceFile:8) at epw.<init>(SourceFile:49) at
> eqd.<init>(SourceFile:33) at
> com.mojang.blaze3d.systems.RenderSystem.<clinit>(SourceFile:51) at
> net.minecraft.client.main.Main.main(SourceFile:220)
>
> not sure what the issue is here. i have tried creating both a
> soft-link and copying the file to /usr/local/lib/liblwjgl.so. ran
> ldconfig. didn't work.
See above.
> another thing: do you think it's feasible to unveil(2) and pledge(2)
> the launcher (and the resulting minceraft process, too)? i have to
> admit that i haven't really investigated this, just curious.
>
This is a good idea, I do like this. But, for now, I'm trying to make
the scripts functional before I do any sort of complex mod to the
codebase. I don't know much about the Java ecosystem, so the debugging
process has been a bit annoying. Perhaps someone with more experience
here could help?
Thanks.!
--
-iz (they/them)
> i like to say mundane things,
> there are too many uninteresting things
> that go unnoticed.
izder456 (dot) neocities (dot) org
NEW WIP: games/prismlauncher