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
13 Replies
Dreadnought
DreadnoughtOP2d ago
It is termux-x11. No proot. Just termux gui. vncserver (x11vnc)
Exelroad
Exelroad2d 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
Dreadnought
DreadnoughtOP16h ago
I have termux latest Fdroid version.
Exelroad
Exelroad11h ago
the openjdk packages, im not asking for your termux app
Dreadnought
DreadnoughtOP10h ago
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
Exelroad10h ago
where did you see that? what do you mean?
Dreadnought
DreadnoughtOP10h ago
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
Exelroad10h ago
and i tell you that you might need openjdk-21-x for the graphical interface notice the -x part
Dreadnought
DreadnoughtOP10h ago
(ssh server) wait it already instals that
No description
Dreadnought
DreadnoughtOP10h ago
@Exelroad
Exelroad
Exelroad10h ago
im sorry, i cant understand you
Dreadnought
DreadnoughtOP10h ago
I knew it This server was 100% not worth it.
Exelroad
Exelroad10h ago
you are answering queation that was not asked

Did you find this page helpful?