I'm CaLendarW Blog

Tag: linux

Remove gcj on Linux

by calendarw on Jul.31, 2008, under setup

每次 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 就會出返出黎!!~~

Leave a Comment :, more...

Run Chinese Java Apps on Fedora

by calendarw on Feb.22, 2008, under os

今日試係 Linux 度行中文既 Java Application, 試過 Standard Out 出到中文但 Java 入面既 font 出唔到中文, 所以係網上搵到呢個方法.

設置中文字型

cd /usr/java/jre1.6.0_03/lib/fonts
mkdir fallback
cd fallback
ln -s /usr/share/fonts/chinese/TrueType/uming.ttf
mkfontdir
mkfontscale
Leave a Comment :, , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!