Home pageFind It!Contact PJAPJA documentation

PJA

 PJA Toolkit forum

This forum is dedicated to PJA Toolkit.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

Messages of subject Can't run PJAToolkitDemo

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

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Jun 11, 2003 at 11:17 AM
Did you use the classes of the JDK 1.2.2 Windows distribution ?
Don't forget to add to rtgraphics.jar the inner classes of sun.java2d.SunGraphicsEnvironment (all the files named SunGraphicsEnvironment$*.class) to make this patch work.

---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation