You are not logged in.
Pages: 1
Hello,
i have installed jdk17-openjdk and jre17-openjdk. Now i want to use jshell, but when i try to write jshell in the termin the command can not found.
bash: jshell: Command not found.
Can maybe someohne help me with that? Im new into the Jarva world and dont know what to do there.
Thanks!
Last edited by Inatrox (2024-01-04 13:38:31)
Offline
What does `archlinux-java status` show? I'm guessing you've got a runtime-only set as default.
Online
Available Java environments:
java-11-openjdk
java-17-openjdk (default)
java-21-openjdk
Offline
So that's fine. How about `echo $PATH`?
Online
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
Offline
That's really odd, no problem there. Can you verify that /usr/lib/jvm/default/bin/jshell exists?
Last edited by Scimmia (2024-01-03 19:17:55)
Online
Doesnt exist there. Only this things are in there:
java jfr jrunscript keytool rmiregistry
Offline
What's the output of
realpath /usr/lib/jvm/default/bin/Offline
/usr/lib/jvm/java-17-openjdk/bin
In this folder are the same files:
java jfr jrunscript keytool rmiregistry
Offline
are you sure you have `jdk17-openjdk` installed? it look like you only have jre.
Offline
Now i deinstalled all java packages and reinstalled them. Now it seems to work. Is it maybe possible, that an jre install after an jdk overides the jdk package?
Thanks for the help ![]()
Offline
Pages: 1