I've installed openjdk

Installed Packages 
java-1.8.0-openjdk.x86_64          1:   @updates
java-1.8.0-openjdk-headless.x86_64 1:   @updates     
javapackages-tools.noarch          4.6.0-14.fc24            @koji-override-0

but still. can't find javac (there is only java program). Where is jdk installed then?


You will find javac in the java-1.8.0-openjdk-devel. Install using

dnf install java-1.8.0-openjdk-devel

Source information: koji: http://koji.fedoraproject.org/koji/rpminfo?rpmID=7988964

  • thanks, why it's so confusing ? JDK means Java Development Kit, so why there is no compiler (and other JDK stuff) in OpenJDK component ? – razor Aug 28 '16 at 12:38
  • 1
    It can be confusing — OpenJDK is the name of the project; it produces both a JRE and a JDK... So you end up with the OpenJDK JRE and the OpenJDK JDK! – Stephen Kitt Aug 28 '16 at 12:42
  • @razor yes, exactly as Stephen explained. It is the name of the Java implementation. In fedora, parts need to use the application are in the standard packages and the parts needed to build applications are in the -devel subpackage, because most of the people do not use them (and it save space, bandwidth and so on) – Jakuje Aug 28 '16 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.