> Run a 'which java' command to see exactly what java are you running,
> followed by 'java -version'.
>
> I suspect you did not get the SUN jdk but the GNU java.


[root at blh ~]# which java
/usr/bin/java
[root at blh ~]# java -version
java version "1.4.2"
gcj (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.1)
Copyright (C) 2004 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.