Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sudo yum install installs only JRE not JDK - Centos

I tried installing open-jdk in Centos using the below command,

sudo yum install java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64

It installs only the JRE by not JDK.

After installation,

  1. The folder /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64 only jre

  2. javac is not recognized.

like image 875
Kannan Ramamoorthy Avatar asked Jun 30 '17 13:06

Kannan Ramamoorthy


People also ask

Can JRE be installed without JDK?

No need to have JRE when you have JDK. If you open JDK folder and see, you'll have JRE folder inside it which is the same of JRE folder initially you have.


1 Answers

After going through this link, found out that sudo yum install java-1.8.0-openjdk installs only JRE.

Executed sudo yum install java-1.8.0-openjdk-devel to install JDK.

like image 123
Kannan Ramamoorthy Avatar answered Oct 11 '22 19:10

Kannan Ramamoorthy