Remove gcj on Linux
每次 install Linux 都包左個 gcj Java 1.4.2 version 既 runtime, 但通常自己用既 java 最低都已經係 1.5, 所以會 uninstall 左佢, 再整返 official 最新果個.
用以下 command 睇返個 java 係咩 version
java -version
通常裝完機都會見到係 gcj
java version "1.4.2"
gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-9)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
再用 alternatives remove 左佢
/usr/sbin/alternatives --remove java /usr/lib/jvm/jre-1.4.2-gcj/bin/java
咁就會無左 java command, 跟住再裝返 official 果個, 個 java command 就會出返出黎!!~~

