if you spot another copy of the jdk files somewhere like the "javac" application, overwrite the ones in the usr/bin directory. maybe even try downloading the one off the oracle site, you never know it might work
or try the alternatives thing after installing the openjdk again see if it actually sees the openjdk and gives you the choice of an alternative
but yea im out of ideas, ive been staring at code for god knows how long, managed to fix the mac and linux scripts i wrote im pretty sure, tried my best to make root installable without using a computer, plus the things ive been trying to do here and i dont even remember what else but im pretty sure i did something else today, plus im tired lol, ive gotten distracted from writing this message 4 times already, not a good sign. so yea, good luck, and if it dont work out maybe ill have some fresh ideas tomorrow