Home > Net >  OpenJDK 1.8.0 installs jre but not jdk?
OpenJDK 1.8.0 installs jre but not jdk?

Time:02-10

I found this older post: sudo yum install installs only JRE not JDK - Centos

But when I ran sudo yum install java-1.8.0-openjdk-devel I don't see the jdk installed? I checked;

$ sudo alternatives --config java

There is 1 program that provides 'java'.

Selection Command

* 1 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-2.el8_5.x86_64/jre/bin/java)

I do devops, not a developer but the devs asked for me to finish the install and get jdk on there, any advice?

Thanks!

CodePudding user response:

The JDK should be installed after installing this package, you can check with:

sudo alternatives --config javac

The JRE is just installed inside the /jre subdirectory.

  •  Tags:  
  • Related