1. 程式人生 > >linux 解除安裝多餘的jdk

linux 解除安裝多餘的jdk

首先使用:update-alternatives --config java
$ update-alternatives --config java


There are 2 programs which provide 'java'.


  Selection    Command
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
   2           /usr/lib/jvm/jre-1.5.0-gcj/bin/java
然後:sudo yum remove /usr/lib/jvm/jre-1.5.0-gcj/bin/java