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 2.5 on iSeries using websphere JDK13

gregfitz

Location : Christchurch / New Zealand
Member since : Jun 28, 2004
Messages : 1
 Jun 29, 2004 at 11:53 PM
i'm using jfreechart with PJA. I have configured everything i beleive i have to, but i cannot get it to work.

in the admin console for websphere under
process definition > Advanced Java virtual machine settings > general properties
Boot ClassPath = /QIBM/UserData/WebASE/ASE5/PRL/lib/ext/pja.jar

and > additional properties, custom properties
awt.toolkit=com.eteks.awt.PJAToolkit
java.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
java2d.font.usePlatformFont=false

i have ignored setting java.awt.fonts property as i api doc of PJAGraphicsManager, it will use user.dir if this property is not set.
So i created some jfaf font files on my windows machine to the yuser.dir directory.
I'm not even sure if PJAGraphicsManager is being used.

am i doing the right thing. i have read in forum "You shouldn't need any .pjaf font file with a JDK version >= 1.2". what does this mean. and what doe sthis property mean and soes it need setting "com.eteks.awt.nojava2d".

i get 2 different errors now depending on what chart i try to create
for a tine series chart
java.lang.UnsatisfiedLinkError: no fontmanager in java.library.path
java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85)
java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:41)
java/lang/LinkageError.<init>(Ljava/lang/String;)V+1 (LinkageError.java:34)
java/lang/ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+407 (ClassLoader.java:1363)
java/lang/Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V+51 (Runtime.java:744)
java/lang/System.loadLibrary(Ljava/lang/String;)V+6 (System.java:815)
sun/security/action/LoadLibraryAction.run()Ljava/lang/Object;+4 (LoadLibraryAction.java:48)
sun/awt/font/NativeFontWrapper.<clinit>()V+22 (NativeFontWrapper.java:32)
sun/java2d/SunGraphicsEnvironment$1.run()Ljava/lang/Object;+37 (SunGraphicsEnvironment.java:80)
sun/java2d/SunGraphicsEnvironment.<init>()V+41 (SunGraphicsEnvironment.java:70)
com/eteks/java2d/PJAGraphicsEnvironment.<init>()V+0 (PJAGraphicsEnvironment.java:66)
java/lang/Class.newInstance()Ljava/lang/Object;+14 (Class.java:238)
java/awt/GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;+27 (GraphicsEnvironment.java:53)
java/awt/Font.initializeFont(Ljava/util/Hashtable;)V+155 (Font.java:264)
java/awt/Font.<init>(Ljava/lang/String;II)V+45 (Font.java:298)
org/jfree/chart/axis/Axis.<clinit>()V+0 (Axis.java:113)
org/jfree/chart/ChartFactory.createTimeSeriesChart(Ljava/lang/String;Ljava/lang/String;
Ljava/lang/String;Lorg/jfree/data/XYDataset;ZZZ)Lorg/jfree/chart/JFreeChart;+0 (ChartFactory.java:1436)

and for a pie chart
java.lang.UnsatisfiedLinkError: sun/awt/font/NativeFontWrapper
java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85)
java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:41)
java/lang/LinkageError.<init>(Ljava/lang/String;)V+1 (LinkageError.java:34)
java/lang/UnsatisfiedLinkError.<init>(Ljava/lang/String;)V+1 (UnsatisfiedLinkError.java:33)
sun/java2d/SunGraphicsEnvironment$1.run()Ljava/lang/Object;+37 (SunGraphicsEnvironment.java:80)
sun/java2d/SunGraphicsEnvironment.<init>()V+41 (SunGraphicsEnvironment.java:70)
com/eteks/java2d/PJAGraphicsEnvironment.<init>()V+0 (PJAGraphicsEnvironment.java:66)
java/lang/Class.newInstance()Ljava/lang/Object;+14 (Class.java:238)
java/awt/GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;+27 (GraphicsEnvironment.java:53)
java/awt/Font.initializeFont(Ljava/util/Hashtable;)V+155 (Font.java:264)
java/awt/Font.<init>(Ljava/lang/String;II)V+45 (Font.java:298)
org/jfree/chart/plot/PiePlot.<clinit>()V+0 (PiePlot.java:186)


Any help much areciated. thanks.


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation