72 Replies
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
@None
hi
@owokitty Hello
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?
Wait
Bashrc is looped
oh i see,
if you use this what happens
CTRL + C
Yeah, I tried and it doesn't even show $~ for me to type the command.
what happens if you touch this and then hold down long press the new session button and then touch failsafe?

let me try , thank you
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 haveI am trying to install java 22 into termux to run recaf
if you had JDK 25 insted would that work or does it have to be ONLY JDK 22?

use this
/data/data/com.termux/files/usr/bin/nano
manually
and check what happensNano is badly damaged
I guess I have to delete all the data.
I sent the wrong photo

no
remove `
you copied and pasted the command wrong
yes
/data/data/com.termux/files/usr/bin/nano
:blobcatiguess:

wow
lol
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

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?
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
oh ok
where did you get the openjdk 22 from? if it works for you already (it sounds like it) then that is cool
https://github.com/openjdk/jdk22/blob/master/doc /building.md
GitHub
jdk22/doc at master · openjdk/jdk22
https://openjdk.org/projects/jdk/22 released 2024-03-19 - openjdk/jdk22
I went in there
you compiled it in termux? great
Not yet
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
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
I haven't really touched java 25
when high-level userspace projects say "linux" it means GNU/Linux
Yes
you can get it here
if you want
https://github.com/termux/termux-packages/pull/26505
Thank you
i tried to compile recaf with it and i see an error, maybe i can fix the error
Yes, good luck!
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 partYou need to reset java home
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 nowexport JAVA_HOME="$HOME/jdk22"
Not sure if it works
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
I'm not sure man, I lost sleep over it.
I don't understand it either.
Why did they leave GCC?
what do you mean GCC?
Openjdk requires build with gcc but here android ndk only has clang
I have to go to school
Goodbye
ðŸ˜


Fake GCC but still not successful
it does not require build with gcc
i'll help you make openjdk 22 for termux in a while
please help me
I'm going crazy about sanity checks
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
Thank you
Ok my version finished compiling it's here
GitHub
Packages · robertkirkman/termux-packages@493b7d4
robertkirkman termux-packages test commit staging area - Packages · robertkirkman/termux-packages@493b7d4
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

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 yetAnd I built one myself.
GitHub
Workflow runs · CrytoHolder0/Openjdk22-android-arm64-
None2. Contribute to CrytoHolder0/Openjdk22-android-arm64- development by creating an account on GitHub.
awesome good job
does it work? i tried to download but it seems like might not have uploaded the artifact?

I don't understand either, apparently I added the upload product command to the action but it doesn't work
if you still want it you can try downloading my version
I tried your openjdk22 , works very well , thank you for building me openjdk22
wow that is so cool
you're welcome