javac not found
Hey,
I installed the jdk with
yay -S jre11-openjdk
The output of
archlinux-java status
is
java-11-openjdk (default)
when I go to /usr/lib/jvm/default/bin/ there is no javac.
Any help appreciated.
About this post
- Posted
- Archived
- Score
- 2 · 100% up
- Kind
- Text
- ID
- ditxux
5 comments
You should not install jre11-openjdk, yet jdk11-openjdk. The jre only contains Java and not javac
The java runtime does not include a compiler.
pacman -Fs javacjre11-openjdkis the java runtime environment 11, from the openjdk project. The java compiler is part of jdk11-openjdk - the java development kit.As the name implies, the runtime environment only contains the software required to run java applications, development tools (like the compiler) are in the development kit.
I have this package and not javac
Use `archlinux-java` to set your default java installation.