Sometimes this happens when you upgrade java but don't tell Linux that you've upgraded.
Start by doing the following:
Code:
[dj@host ~]$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
and
[dj@host~]$ javac -version
javac 1.6.0
If those commands show the correct version of java that you installed the problem is elsewhere. Post me the output of those two commands and I'll see if I can help further.