Skip to content

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.

2 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
ditxux

Author

39
posts
13
comments
0
media
View profile

5 comments

You should not install jre11-openjdk, yet jdk11-openjdk. The jre only contains Java and not javac

7 points

jre11-openjdk is 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.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.