卸载Linux自带的JDK Redhat Enterprise Linux中自带了jdk的旧版本,往往需要卸载,卸载步骤如下: 在终端输入:yum remove java 终端显示:Is this ok[y/N]: 输入y,按回车,终端显示Complete!此时jdk旧版本已经被卸载了。