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 Success on an OS/400 system.

LukeyBoy

Location : Toronto, Canada
Member since : Jul 11, 2003
Messages : 1
 Jul 11, 2003 at 11:38 AM
Finally got PJA2.5 beta working on an OS/400 box. And it works beautifully with one hitch; I can't append things to the boot classpath on the command-line, but I moved the "pja.jar" file to the "/qibm/UserData/Java400/ext" directory and everything worked as planned.

Excellent work guys.

pg344

Location : Freiburg / Germany
Member since : Jul 16, 2003
Messages : 1
 Jul 16, 2003 at 6:18 PM
I tried the same thing,
but on my machine it only works with the -Xbootclasspath option, not with
a copy in userdata/java400/ext

But I have another problem:
following error occurs:

any suggestions

java -Xbootclasspath/a:/home/ups/rt/lib/pja.jar -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment -Djava2d.font.usePlatformFont=false -Djava.awt.fonts=home/ups/rt/fonts -Duser.home=home/ups/rt Printing

java.lang.UnsatisfiedLinkError: no fontmanager in java.library.path
java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:94)
java/lang/LinkageError.<init>(Ljava/lang/String;)V+1 (LinkageError.java
:43)
java/lang/ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)
V+297 (ClassLoader.java:1291)
java/lang/Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V+48
(Runtime.java:482)
java/lang/System.loadLibrary(Ljava/lang/String;)V+6 (System.java:768)
sun/security/action/LoadLibraryAction.run()Ljava/lang/Object;+4 (LoadLi
braryAction.java:57)
sun/awt/font/NativeFontWrapper.<clinit>()V+22 (NativeFontWrapper.java:4
1)
sun/java2d/SunGraphicsEnvironment.registerFontFile(Ljava/lang/String;Lj
ava/lang/String;)V+190 (SunGraphicsEnvironment.java:436)
sun/java2d/SunGraphicsEnvironment.initTerminalNames()V+422 (SunGraphics
Environment.java:796)
sun/java2d/SunGraphicsEnvironment.initCompositeFonts()V+8 (SunGraphicsE
nvironment.java:661)
sun/java2d/SunGraphicsEnvironment$1.run()Ljava/lang/Object;+61 (SunGrap
hicsEnvironment.java:84)
sun/java2d/SunGraphicsEnvironment.<init>()V+41 (SunGraphicsEnvironment.
java:72)
com/eteks/java2d/PJAGraphicsEnvironment.<init>()V+0 (PJAGraphicsEnviron
ment.java:66)
java/lang/Class.newInstance()Ljava/lang/Object;+14 (Class.java:241)
java/awt/GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/Gra
phicsEnvironment;+27 (GraphicsEnvironment.java:63)
java/awt/image/BufferedImage.createGraphics()Ljava/awt/Graphics2D;+1 (B
ufferedImage.java:1009)
org/apache/fop/svg/PDFGraphics2D.<init>(ZLorg/apache/fop/layout/FontSta
te;Lorg/apache/fop/pdf/PDFDocument;Ljava/lang/String;III)V+0 (PDFGraphics2D.j
ava:116)
org/apache/fop/render/pdf/PDFRenderer.renderSVGDocument(Lorg/w3c/dom/Do
cument;IILorg/apache/fop/layout/FontState;)V+0 (PDFRenderer.java:485)
org/apache/fop/render/pdf/PDFRenderer.renderSVGArea(Lorg/apache/fop/svg
/SVGArea;)V+0 (PDFRenderer.java:470)
org/apache/fop/svg/SVGArea.render(Lorg/apache/fop/render/Renderer;)V+0
(SVGArea.java:58)
org/apache/fop/render/pdf/PDFRenderer.renderForeignObjectArea(Lorg/apac
he/fop/layout/inline/ForeignObjectArea;)V+0 (PDFRenderer.java:403)
org/apache/fop/layout/inline/ForeignObjectArea.render(Lorg/apache/fop/r
ender/Renderer;)V+0 (ForeignObjectArea.java:45)

..................

ForSale

Member since : Oct 28, 2003
Messages : 1
 Oct 28, 2003 at 3:28 PM
I'm trying to get PJA working on a 825 iSeries ... and it's not working as I don't know what exactly I have to set for parameter "java.awt.fonts" and where to find fonts.

That's the first time I'm doing something like this. Any help will be appreciate.

In fact I get this error message :

Toolkit class in use is com.eteks.awt.PJAToolkit
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.initCompositeFonts()V+152 (SunGraphicsEnvironment.java:640)
sun/java2d/SunGraphicsEnvironment$1.run()Ljava/lang/Object;+89 (SunGraphicsEnvironment.java:90)
sun/java2d/SunGraphicsEnvironment.<init>()V+41 (SunGraphicsEnvironment.java:70)
Toolkit class in use is com.eteks.awt.PJAToolkit
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.initCompositeFonts()V+152 (SunGraphicsEnvironment.java:640)
sun/java2d/SunGraphicsEnvironment$1.run()Ljava/lang/Object;+89 (SunGraphicsEnvironment.java:90)
sun/java2d/SunGraphicsEnvironment.<init>()V+41 (SunGraphicsEnvironment.java:70)

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Nov 11, 2003 at 8:44 AM
> what exactly I have to set for parameter "java.awt.fonts" and where to find fonts.

You have to specify a path where the JVM can find some True Type Font files like Lucida family fonts (generally provided as the default fonts with the JDK).
What JDK do you use ?
---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation