T
Termux•2w ago
None

openjdk 22 installation

I'm about to cry
72 Replies
None
NoneOP•2w ago
None
NoneOP•2w ago
I added to bashrc : export PATH=$HOME/jdk22/jdk-22.0.2/bin:$PATH Then run the command : echo 'export PATH=$HOME/jdk22/jdk-22.0.2/bin:$PATH' >> ~/.bashrc source ~/.bashrc And finally got the error as in the video
owokitty
owokitty•2w ago
@None hi
None
NoneOP•2w ago
@owokitty Hello
owokitty
owokitty•2w ago
i think you sent the wrong video, there's no error there, but, the commands you sent look like the wrong JDK do you want JDK 21, 22, 25 or a specific version?? or is JDK 21 ok?
None
NoneOP•2w ago
Wait Bashrc is looped
None
NoneOP•2w ago
owokitty
owokitty•2w ago
oh i see, if you use this what happens CTRL + C
None
NoneOP•2w ago
Yeah, I tried and it doesn't even show $~ for me to type the command.
owokitty
owokitty•2w ago
what happens if you touch this and then hold down long press the new session button and then touch failsafe?
owokitty
owokitty•2w ago
No description
None
NoneOP•2w ago
let me try , thank you
owokitty
owokitty•2w ago
and after that happens try to edit or delete your ~/.bashrc to fix that and then tell me what you want to do next because i think that you have the wrong jdk also but it depends exactly what jdk you have
None
NoneOP•2w ago
I am trying to install java 22 into termux to run recaf
owokitty
owokitty•2w ago
if you had JDK 25 insted would that work or does it have to be ONLY JDK 22?
None
NoneOP•2w ago
No description
owokitty
owokitty•2w ago
use this /data/data/com.termux/files/usr/bin/nano manually and check what happens
None
NoneOP•2w ago
Nano is badly damaged I guess I have to delete all the data. I sent the wrong photo
None
NoneOP•2w ago
No description
owokitty
owokitty•2w ago
no
Shiumano
Shiumano•2w ago
remove `
owokitty
owokitty•2w ago
you copied and pasted the command wrong yes
Shiumano
Shiumano•2w ago
/data/data/com.termux/files/usr/bin/nano
None
NoneOP•2w ago
:blobcatiguess:
None
NoneOP•2w ago
No description
owokitty
owokitty•2w ago
wow
Shiumano
Shiumano•2w ago
lol
owokitty
owokitty•2w ago
can you just back up your file and erase it like this mv .bashrc .bashrc-old and then make another one? also @None for me the recaf newest version CLI version works in the java 25
owokitty
owokitty•2w ago
No description
owokitty
owokitty•2w ago
BUT the GUI version doesn't work right now it has an error in the java. but do you need the GUI or only CLI of recaf?
None
NoneOP•2w ago
I use recaf 4x alpha linux.jar together with vnc Alright I broke that loop. Thanks a lot I thought, I will lose my entire project in termux
owokitty
owokitty•2w ago
oh ok where did you get the openjdk 22 from? if it works for you already (it sounds like it) then that is cool
None
NoneOP•2w ago
I went in there
owokitty
owokitty•2w ago
you compiled it in termux? great
None
NoneOP•2w ago
Not yet
owokitty
owokitty•2w ago
oh well i am trying it with Java 25 which i already have and it downloads some kind of cache of an OpenJFX for GNU/Linux I think which doesn't work
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @501edcf1'
Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /data/data/com.termux/files/home/.openjfx/cache/23.0.2+3/aarch64/libprism_es2.so: dlopen failed: library "libX11.so.6" not found: needed by /data/data/com.termux/files/home/.openjfx/cache/23.0.2+3/aarch64/libprism_es2.so in namespace (default)
java.lang.UnsatisfiedLinkError: /data/data/com.termux/files/home/.openjfx/cache/23.0.2+3/aarch64/libprism_es2.so: dlopen failed: library "libX11.so.6" not found: needed by /data/data/com.termux/files/home/.openjfx/cache/23.0.2+3/aarch64/libprism_es2.so in namespace (default)
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @501edcf1'
Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /data/data/com.termux/files/home/.openjfx/cache/23.0.2+3/aarch64/libprism_es2.so: dlopen failed: library "libX11.so.6" not found: needed by /data/data/com.termux/files/home/.openjfx/cache/23.0.2+3/aarch64/libprism_es2.so in namespace (default)
java.lang.UnsatisfiedLinkError: /data/data/com.termux/files/home/.openjfx/cache/23.0.2+3/aarch64/libprism_es2.so: dlopen failed: library "libX11.so.6" not found: needed by /data/data/com.termux/files/home/.openjfx/cache/23.0.2+3/aarch64/libprism_es2.so in namespace (default)
did you already get to that or didn't yet? this would be why it's called "recaf-linux" jar not "recaf-android" which isn't there
None
NoneOP•2w ago
I haven't really touched java 25
owokitty
owokitty•2w ago
when high-level userspace projects say "linux" it means GNU/Linux
None
NoneOP•2w ago
Yes
owokitty
owokitty•2w ago
None
NoneOP•2w ago
Thank you
owokitty
owokitty•2w ago
i tried to compile recaf with it and i see an error, maybe i can fix the error
None
NoneOP•2w ago
Yes, good luck!
owokitty
owokitty•2w ago
oh weird i fixed the first error, but then the next one is that Recaf is saying that it doesn't "want" to be compiled with anything except the actual JDK 22 and not older OR newer > Failed to calculate the value of task ':recaf-ui:compileJava' property 'javaCompiler'. > Cannot find a Java installation on your machine (Linux 4.14.190-lineage-gef0cb31b13 aarch64) matching: {languageVersion=22, vendor=any vendor, implementation=vendor-specific, nativeImageCapable=false}. Toolchain download repositories have not been configured. (languageVersion=22) let me know how it goes if you continue with openjdk 22 it might be interesting to see if that actually fixes this part
None
NoneOP•2w ago
You need to reset java home
owokitty
owokitty•2w ago
ohh like this? export JAVA_HOME=/data/data/com.termux/files/usr/lib/jvm/java-25-openjdk i'll try it in a while i have to go now
None
NoneOP•2w ago
export JAVA_HOME="$HOME/jdk22" Not sure if it works
owokitty
owokitty•2w ago
i saw you sent a message asking can you build openjdk 22 in github actions yes you can , i can help you try it if you still want that
None
NoneOP•2w ago
I'm not sure man, I lost sleep over it. I don't understand it either. Why did they leave GCC?
owokitty
owokitty•2w ago
what do you mean GCC?
None
NoneOP•2w ago
Openjdk requires build with gcc but here android ndk only has clang I have to go to school Goodbye 😭
None
NoneOP•2w ago
No description
No description
None
NoneOP•2w ago
Fake GCC but still not successful
owokitty
owokitty•2w ago
it does not require build with gcc i'll help you make openjdk 22 for termux in a while
None
NoneOP•2w ago
None
NoneOP•2w ago
please help me I'm going crazy about sanity checks
owokitty
owokitty•2w ago
yeah that is a good attempt, but i can let you know that unfortunately it is completely wrong, that way basically will not work and i will make one for you but the way i make them is completely different i just finished making the bump of Blender to 4.5.3 so i should have time to make openjdk 22 now and send you the artifact
None
NoneOP•2w ago
Thank you
owokitty
owokitty•7d ago
Ok my version finished compiling it's here
owokitty
owokitty•7d ago
GitHub
Packages · robertkirkman/termux-packages@493b7d4
robertkirkman termux-packages test commit staging area - Packages · robertkirkman/termux-packages@493b7d4
owokitty
owokitty•7d ago
here is the code of how to compile openjdk 22 for termux in github actions, in case you want to see what the code looks like https://github.com/robertkirkman/termux-packages/commit/493b7d4dfee62e5da272f9aac93611e1cdde5d3c but you don't need the code you can just log into github and download the URL zip
owokitty
owokitty•7d ago
No description
owokitty
owokitty•7d ago
if you can't see the URL it means you aren't logged into github, you don't need a specific account to see it just any account after installing it you need to then use this command update-alternatives --config java then press the number matching openjdk 22 and push enter then the java command becomes version 22 i don't know if this will actually help for the Recaf or not but it might. i don't know why openjdk 25 showed that error for compiling Recaf but I guessed that maybe it wouldn't happen in openjdk 22 but I don't know yet
None
NoneOP•7d ago
And I built one myself.
None
NoneOP•7d ago
GitHub
Workflow runs · CrytoHolder0/Openjdk22-android-arm64-
None2. Contribute to CrytoHolder0/Openjdk22-android-arm64- development by creating an account on GitHub.
owokitty
owokitty•7d ago
awesome good job does it work? i tried to download but it seems like might not have uploaded the artifact?
owokitty
owokitty•7d ago
No description
None
NoneOP•7d ago
I don't understand either, apparently I added the upload product command to the action but it doesn't work
owokitty
owokitty•7d ago
if you still want it you can try downloading my version
None
NoneOP•7d ago
I tried your openjdk22 , works very well , thank you for building me openjdk22
owokitty
owokitty•7d ago
wow that is so cool you're welcome

Did you find this page helpful?