#I installed java and for some reason it cannot run .jar files?!
33 messages · Page 1 of 1 (latest)
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)
i dont know why.
about your unexpected error it mightby caused by you dont have the openjdk-21-x maybe.
the openjdk packages, im not asking for your termux app
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
where did you see that?
what do you mean?
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
and i tell you that you might need openjdk-21-x for the graphical interface notice the -x part
im sorry, i cant understand you
I knew it
This server was 100% not worth it.
you are answering queation that was not asked
maybe try using proot-distro?
Termux-Java != proot/chroot/real linux Java (They are the different env)
they left so
this is fixed now in pkg upgrade . i didn't see this thread of it until now