sudo yum install installs only JRE not JDK - Centos

梦想与她 提交于 2019-12-05 20:27:09

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/44847659/sudo-yum-install-installs-only-jre-not-jdk-centos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!