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

33 messages · Page 1 of 1 (latest)

grim robin
#

I tried running a midi player (ultralight midi player) also fabricmc nothing worked. OPENJDK-21 is used.

uncut lotusBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

grim robin
#

It is termux-x11. No proot. Just termux gui.

#

vncserver (x11vnc)

lament venture
#

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.

grim robin
#

I have termux latest

#

Fdroid version.

lament venture
#

the openjdk packages, im not asking for your termux app

grim robin
#

Weird

#

Since no .jar files run correctly

#

So this means java isn't stable on termux

lament venture
lament venture
grim robin
#

21 shows "unexpected error"

grim robin
#

Manually installing java using a tar.gz and extracting it also does not work

lament venture
#

and i tell you that you might need openjdk-21-x for the graphical interface notice the -x part

grim robin
#

(ssh server) wait it already instals that

#

@lament venture

lament venture
grim robin
#

This server was 100% not worth it.

lament venture
#

you are answering queation that was not asked

fallen sierra
#

maybe try using proot-distro?

upper acorn
#

@nevillegg ^

#

oh

#

they left

#

pretty dumb but well

next ridge
#

Termux-Java != proot/chroot/real linux Java (They are the different env)

upper acorn
#

they left so

wise depot
#

this is fixed now in pkg upgrade . i didn't see this thread of it until now