I am using this distro for past 30 days or more and I installed openjdk-8, openjdk-11, openjdk-17, scala and kotlin way back when I freshly installed it. But yesterday I had to use java and I don't find any java. Back then I didn't set a JAVA_HOME and java path things but it was still accessible and found on the system by doing things like java --version
, which openjdk-8
, etc. So today I removed them all, did eopkg autoremove them all, eopkg dc; and installed them again after a reboot. is that I should only install a single jdk? it's still not working. I tried looking for some executables such as jdk, java, openjdk in directories like java, jdk, openjdk in directories list in $PATH. but found nothing. Scala and Scalac are working but kotlin things are not, obviously because of java. idk why, I thought both shouldn't work.
install and setup java.
Hi @locusfokee01 ,
you might have see it already, but just in case :
https://help.getsol.us/docs/user/software/development/java
I already mentioned something about JAVA_HOME and/or adding java path to system path. I don't know where does solus's eopkg installs packages, there are at least 4 to 6 directories that comes default in system path, ie, /usr/local/bin, /usr/bin, /bin, /sbin, $HOME/.local/bin and a very few others more or less, depending on the distros as far as I remember but not sure, anyway, doesn't matter that's not what we should be talking about lol. I want to find out where is the openjdks are installed by eopkg so that I can add that to path.
- Edited
Oh the docs say that Java 17 includes OpenJFX? That's not accurate, only Java 11 has OpenJFX. I'll fix the docs.
Also, I would advise not using openjdk-8. It's going to be removed from the repo sooner rather than later as almost everything has been migrated to something newer. The few remaining items that don't support a newer Java are just going to be removed as well.
@ReillyBrogan ,
Not that removing old Java stuff is something I really care about, I have to say that removing Java 8 will put me in trouble.
Actually, I am using X-plane and to update planes, I have to use a small program called X-updater, and it's only working with Java 8. I tried with upper version of Java without success. And, unfortunately, at least for the moment, X-updater has no update to use a newer version of Java. So, if you could be kind enough to advise when you are going to remove this particular version of Java, it'll be fine
nolan Extremelyy sorry, actually I didn't pay attention to that part.
A sub-issue arose, how do I update/set a jdk version as default jdk or where can I find update-alternatives or update-java-alternatives command? Is there anything else I'm missing?
In the same link as well
SDKMAN: https://sdkman.io/
@ReillyBrogan I got a typo for you there.
from
[...] different versions or java [...]
to
[...] different versions of java [...]
nolan Funnily enough he already caught that typo and made it part of his PR: https://github.com/getsolus/help-center-docs/pull/405/files
The java page is now updated
Patrice Yes, as someone else mentioned you can use SDKMAN to install alternate versions of Java. You can also grab Java 8 releases built by someone else and use those on Solus, the only thing that'll go away is the openjdk-8 package shipped by Solus itself. I recommend the Adoptium builds myself.
- Edited
ReillyBrogan :Also, I would advise not using openjdk-8. It's going to be removed from the repo sooner ...
(a bit OT)I hope that the support for libreoffice still remain (base, zotero ecc) currently it is the only one that works, if I didn't miss something