Jesse
Location : KL, Malaysia
Member since : Jun 10, 2003
Messages : 1
|
Jun 10, 2003 at 8:53 AM
Hi there,
I am using jdk1.2.2 in Solaris 8 and tried to run the script PJAToolkitDemo1.2.sh and got the following results:
Toolkit demo
© Copyright 2000-2001 eTeks <info@eteks.com>.
© Copyright 1996,1998 by Jef Poskanzer <jef@acme.com>.
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.lang.ClassCastException: com.eteks.java2d.PJAGraphicsConfiguration
at <Unloaded Method>
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:124)
at java.awt.Toolkit$2.run(Toolkit.java:499)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:492)
at ToolkitDemo.main(ToolkitDemo.java:106)
The java command in the script looks like this:
java -Xbootclasspath/p:../lib/pja.jar:../lib/rtgraphics.jar \
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \
-Djava2d.font.usePlatformFont=false \
-Djava.awt.fonts=$JAVA_HOME/jre/lib/fonts \
-Duser.home=.. \
-classpath ../lib/pjatools.jar \
ToolkitDemo
I'd like to know if this is caused by the jdk1.2, or are there some other patches I need to run apart from the rtgraphics.jar?
thanks in advance.
rgrds,
jesse
|