hi, just wanna thanks
bytesniper for the tips

thanks alot for ending my 4 days of agony.
note : for others with similar problem, try command :
alternatives --display java and you will see complete configuration of your current jdk.
you have to add not only the java link but also jre link.
this is my configuration :
[root@Wiedz ~]# alternatives --display java
java - status is manual.
link currently points to /opt/j2sdk1.4.2_08/bin/java
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420
slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry
slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj
slave jre: /usr/lib/jvm/jre-1.4.2-gcj
/opt/j2sdk1.4.2_08/bin/java - priority 2
slave rmiregistry: /opt/j2sdk1.4.2_08/jre/bin/rmiregistry
slave jre_exports: /opt/j2sdk1.4.2_08/jre/lib
slave jre: /opt/j2sdk1.4.2_08/jre
Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.