4

I've installed openjdk

Installed Packages 
java-1.8.0-openjdk.x86_64          1:1.8.0.101-1.b14.fc24   @updates
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.101-1.b14.fc24   @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?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
razor
  • 143
  • 4

1 Answers1

6

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

Jakuje
  • 20,974
  • 7
  • 51
  • 70
  • 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](http://openjdk.java.net/) 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