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 PJA - AS400 - PJAToolkitDemo1.2.sh

amer

Member since : Apr 20, 2006
Messages : 2
 Apr 20, 2006 at 11:49 PM
Ok, I've installed the 2.5 on my AS/400 with a JDK1.4.2. I ran the PJAToolkitDemo1.2.sh containing this command:

/qibm/proddata/java400/jdk14/bin/java -Xbootclasspath/a:../lib/pja.jar \
-Dawt.toolkit=com.eteks.awt.PJAToolkit \
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \
-Djava2d.font.usePlatformFont=false \
-Djava.awt.fonts=/www/lib/fonts \
-Duser.home=../../pja \
-classpath ../lib/pjatools.jar \
ToolkitDemo

I received this as output:
Toolkit demo
© Copyright 2000-2001 eTeks <info@eteks.com>.
© Copyright 1996,1998 by Jef Poskanzer <jef@acme.com>.

java.lang.ExceptionInInitializerError
at java/lang/Throwable.<init>(Throwable.java:180)
at java/lang/Error.<init>(Error.java:37)
at java/lang/ExceptionInInitializerError.<init>(ExceptionInInitializerError.java:61)
at java/lang/Class.forName(Class.java:141)
at java/awt/Toolkit$2.run(Toolkit.java:748)
at java/awt/Toolkit.getDefaultToolkit(Toolkit.java:739)
at ToolkitDemo.main(ToolkitDemo.java:103)
Caused by: java.lang.NullPointerException
at sun/java2d/SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:139)
at sun/java2d/SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:85)
at com/eteks/java2d/PJAGraphicsEnvironment.<init>(PJAGraphicsEnvironment.java:67)
at sun/reflect/NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun/reflect/DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java/lang/reflect/Constructor.newInstance(Constructor.java:274)
at java/lang/Class.newInstance0(Class.java:308)
at java/lang/Class.newInstance(Class.java:261)
at java/awt/GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java/awt/Font.initializeFont(Font.java:308)
at java/awt/Font.<init>(Font.java:344)
at com/eteks/awt/PJAGraphicsManager.isFontInstantiableInternal(PJAGraphicsManager.java:309)
at com/eteks/awt/PJAGraphicsManager.useJava2D(PJAGraphicsManager.java:254)
at com/eteks/awt/PJAGraphicsManager.getDefaultGraphicsManager(PJAGraphicsManager.java:202)
at com/eteks/awt/PJAToolkit.<clinit>(PJAToolkit.java:256)
...

Thx in advance.

amer

Member since : Apr 20, 2006
Messages : 2
 Apr 28, 2006 at 8:59 PM
Hi,
looking in the sun java properties i found this variable :sun.java2d.fontpath.

so using this property has fixed the problem that i had :

-Dsun.java2d.fontpath=/qibm/ProdData/Java400/fonts/TrueType \

these properties are very helpful inorder to debug searching files fonts.

-Dsun.java2d.debugfonts=true \
-Dsun.java2d.trace=true \

so this is my contribution in using PJA.




Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 May 4, 2006 at 10:51 PM
Thank you for your contribution. :-)
---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation