Java Installation on s Solaris 8

I have installed java 1.6.0_31 on a solaris 8 machine by mean of the jre-6u31-solaris-sparc.sh file. The installation i think is allright infact if I run the java -version command it shows the right version but if i try to run the command

java -jar Monitor.jar c (where monitor.jar is a little java app)

it shows the following error:

Exception in thread "main" java.lang.StackOverflowError
at sun.font.FontManager.getDefaultPhysicalFont (Unknown Source)
at sun.font.NativeFont.getMapper(Unknown Source)
at sun.font.NativeFont.getMapper(Unknown Source)
at sun.font.NativeFont.getMapper(Unknown Source)
at sun.font.NativeFont.getMapper(Unknown Source)
at sun.font.NativeFont.getMapper(Unknown Source)
.
.
.
.

Help!!

no help...????