I installed java and for some reason it cannot run .jar files?!

I tried running a midi player (ultralight midi player) also fabricmc nothing worked. OPENJDK-21 is used.
No description
19 Replies
#codeofconductfreesoftwares
It is termux-x11. No proot. Just termux gui. vncserver (x11vnc)
Exelroad
Exelroad6mo ago
i try to run it on my termux it give different output, complaiing about libiconv for some reason,
java -jar MIDIPlayer.jar
Loading config...
Config doesn't exist, assuming this is first run. Welcome to UMP!
Exception in thread "main" java.lang.UnsatisfiedLinkError: /data/data/com.termux/files/usr/lib/jvm/java-21-openjdk/lib/libsplashscreen.so: dlopen failed: cannot locate symbol "libiconv_open" referenced by "/data/data/com.termux/files/usr/lib/jvm/java-21-openjdk/lib/libsplashscreen.so"...
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:259)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:249)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2427)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:916)
at java.base/java.lang.System.loadLibrary(System.java:2063)
at java.desktop/java.awt.SplashScreen$1.run(SplashScreen.java:135)
at java.desktop/java.awt.SplashScreen$1.run(SplashScreen.java:133)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at java.desktop/java.awt.SplashScreen.getSplashScreen(SplashScreen.java:132)
at pipira.MIDIPlayer.app.welcome.WelcomeWindow.setVisible(WelcomeWindow.java:177)
at pipira.MIDIPlayer.app.MIDIPlayerApp.init(MIDIPlayerApp.java:226)
at pipira.MIDIPlayer.MIDIPlayerMain.main(MIDIPlayerMain.java:72)
java -jar MIDIPlayer.jar
Loading config...
Config doesn't exist, assuming this is first run. Welcome to UMP!
Exception in thread "main" java.lang.UnsatisfiedLinkError: /data/data/com.termux/files/usr/lib/jvm/java-21-openjdk/lib/libsplashscreen.so: dlopen failed: cannot locate symbol "libiconv_open" referenced by "/data/data/com.termux/files/usr/lib/jvm/java-21-openjdk/lib/libsplashscreen.so"...
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:259)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:249)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2427)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:916)
at java.base/java.lang.System.loadLibrary(System.java:2063)
at java.desktop/java.awt.SplashScreen$1.run(SplashScreen.java:135)
at java.desktop/java.awt.SplashScreen$1.run(SplashScreen.java:133)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at java.desktop/java.awt.SplashScreen.getSplashScreen(SplashScreen.java:132)
at pipira.MIDIPlayer.app.welcome.WelcomeWindow.setVisible(WelcomeWindow.java:177)
at pipira.MIDIPlayer.app.MIDIPlayerApp.init(MIDIPlayerApp.java:226)
at pipira.MIDIPlayer.MIDIPlayerMain.main(MIDIPlayerMain.java:72)
i dont know why. about your unexpected error it mightby caused by you dont have the openjdk-21-x maybe.
No description
#codeofconductfreesoftwares
I have termux latest Fdroid version.
Exelroad
Exelroad6mo ago
the openjdk packages, im not asking for your termux app
#codeofconductfreesoftwares
I realized this. You were using openjdk 17 where I am using openjdk 21 Weird Since no .jar files run correctly So this means java isn't stable on termux
Exelroad
Exelroad6mo ago
where did you see that? what do you mean?
#codeofconductfreesoftwares
I tested with both openjdk 21 and 17 21 shows "unexpected error" and 17 shows this Manually installing java using a tar.gz and extracting it also does not work
Exelroad
Exelroad6mo ago
and i tell you that you might need openjdk-21-x for the graphical interface notice the -x part
#codeofconductfreesoftwares
(ssh server) wait it already instals that
No description
#codeofconductfreesoftwares
@Exelroad
Exelroad
Exelroad6mo ago
im sorry, i cant understand you
#codeofconductfreesoftwares
I knew it This server was 100% not worth it.
Exelroad
Exelroad6mo ago
you are answering queation that was not asked
Mlwls
Mlwls6mo ago
maybe try using proot-distro?
Catinette
Catinette6mo ago
@nevillegg ^ oh they left pretty dumb but well
Computerph1
Computerph16mo ago
Termux-Java != proot/chroot/real linux Java (They are the different env)
Catinette
Catinette6mo ago
they left so
owokitty
owokitty6mo ago
this is fixed now in pkg upgrade . i didn't see this thread of it until now
komo
komo6mo ago
the person has left the server, so might as well close this thread

Did you find this page helpful?