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 on WebSphere 5.0 on iSeries

duma

Member since : Mar 16, 2005
Messages : 1
 Mar 16, 2005 at 1:00 PM
Iam trying to use PJA 2.5 on AS/400 with Websphere 5.0. I have set parameters:

bootclasspath= ${BOOTCLASSPAT}:/QIBM/ProdData/WebASE/ASE5/java/ext/pja.jar/
java.awt.fonts= /QIBM/ProdData/Java400/fonts/TrueType

awt.toolkit=com.eteks.awt.PJAToolkit
java.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
java2d.font.usePlatformFont=false

user.home=/QIBM/ProdData/Java400/jdk13

Location of font.propertise file is /QIBM/ProdData/Java400/jdk13/lib

This is a snipet of my test code:
...
System.out.println("defaultToolkit = " + Toolkit.getDefaultToolkit().toString());
System.out.println("Font test : " + new Font("Serif", Font.PLAIN, 10).toString());
...

I get the following for a stack trace
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.addPathFonts(Ljava/lang/String;Ljava/io/FilenameFilter;I)Z+156 (SunGraphicsEnvironment.java:538)
sun/java2d/SunGraphicsEnvironment.access$100(Lsun/java2d/SunGraphicsEnvironment;Ljava/lang/String;)Z+1 (SunGraphicsEnvironment.java:43)
sun/java2d/SunGraphicsEnvironment$2.run()Ljava/lang/Object;+99 (SunGraphicsEnvironment.java:132)
sun/java2d/SunGraphicsEnvironment.loadFonts()V+16 (SunGraphicsEnvironment.java:111)
sun/java2d/SunGraphicsEnvironment.initTerminalNames()V+433 (SunGraphicsEnvironment.java:750)
sun/java2d/SunGraphicsEnvironment.initCompositeFonts()V+8 (SunGraphicsEnvironment.java:618)
sun/java2d/SunGraphicsEnvironment$1.run()Ljava/lang/Object;+89 (SunGraphicsEnvironment.java:90)
sun/java2d/SunGraphicsEnvironment.<init>()V+41 (SunGraphicsEnvironment.java:70)
com/eteks/java2d/PJAGraphicsEnvironment.<init>()V+1 (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:259)
java/awt/Font.<init>(Ljava/lang/String;II)V+45 (Font.java:293)
test/TestServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+445 (TestServlet.java:101)
javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+32 (HttpServlet.java:740)
javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+26 (HttpServlet.java:853)
com/ibm/ws/webcontainer/servlet/StrictServletInstance.doService(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+21 (StrictServletInstance.java:110)
. . .

Content of folder /QIBM/ProdData/Java400/fonts/TrueType is:
LucidaBrightDemiBold.ttf
LucidaBrightDemiItalic.ttf
LucidaBrightItalic.ttf
LucidaBrightRegular.ttf
LucidaSansDemiBold.ttf
LucidaSansDemiOblique.ttf
LucidaSansOblique.ttf
LucidaSansRegular.ttf
LucidaTypewriterBold.ttf
LucidaTypewriterBoldOblique.ttf
LucidaTypewriterOblique.ttf
LucidaTypewriterRegular.ttf

Content of font.properties file is:

serif.plain.0=-ibm-times new roman-medium-r-normal--*-%d-0-0-p-*-iso8859-1
serif.italic.0=-ibm-times new roman-medium-i-normal--*-%d-0-0-p-*-iso8859-1
serif.bold.0=-ibm-times new roman-bold-r-normal--*-%d-0-0-p-*-iso8859-1
serif.bolditalic.0=-ibm-times new roman-bold-i-normal--*-%d-0-0-p-*-iso8859-1

sansserif.plain.0=-ibm-helvetica-medium-r-normal--*-%d-0-0-p-*-iso8859-1
sansserif.italic.0=-ibm-helvetica-medium-i-normal--*-%d-0-0-p-*-iso8859-1
sansserif.bold.0=-ibm-helvetica-bold-r-normal--*-%d-0-0-p-*-iso8859-1
sansserif.bolditalic.0=-ibm-helvetica-bold-i-normal--*-%d-0-0-p-*-iso8859-1

monospaced.plain.0=-ibm-courier-medium-r-normal--*-%d-0-0-m-*-iso8859-1
monospaced.italic.0=-ibm-courier-medium-i-normal--*-%d-0-0-m-*-iso8859-1
monospaced.bold.0=-ibm-courier-bold-r-normal--*-%d-0-0-m-*-iso8859-1
monospaced.bolditalic.0=-ibm-courier-bold-i-normal--*-%d-0-0-m-*-iso8859-1

dialog.plain.0=-ibm-helvetica-medium-r-normal--*-%d-0-0-p-*-iso8859-1
dialog.italic.0=-ibm-helvetica-medium-i-normal--*-%d-0-0-p-*-iso8859-1
dialog.bold.0=-ibm-helvetica-bold-r-normal--*-%d-0-0-p-*-iso8859-1
dialog.bolditalic.0=-ibm-helvetica-bold-i-normal--*-%d-0-0-p-*-iso8859-1

dialoginput.plain.0=-ibm-courier-medium-r-normal--*-%d-0-0-m-*-iso8859-1
dialoginput.italic.0=-ibm-courier-medium-i-normal--*-%d-0-0-m-*-iso8859-1
dialoginput.bold.0=-ibm-courier-bold-r-normal--*-%d-0-0-m-*-iso8859-1
dialoginput.bolditalic.0=-ibm-courier-bold-i-normal--*-%d-0-0-m-*-iso8859-1

#
# to enable helvetica, courier and timesroman as real fonts
# remove aliases, and define them as real terminal fonts.
# (i.e. timesroman.0=TimesRoman)
#
alias.timesroman=serif
alias.helvetica=sansserif
alias.courier=monospaced

# font filenames for reduced initialization time

#filename.*_timesnewromanMT30=tnrmt30.ttf
#filename.jdk_lucida=LucidaSansRegular.ttf
#filename.jdk_lucidabright=LucidaBrightDemiItalic.ttf
#filename.jdk_lucidatypewriter=LucidaTypewriterOblique.ttf

# default char definition
default.char=274f

fontcharset.serif.0=sun.io.CharToByteISO8859_1

fontcharset.serif.italic.0=sun.io.CharToByteISO8859_1

fontcharset.serif.bold.0=sun.io.CharToByteISO8859_1

fontcharset.serif.bolditalic.0=sun.io.CharToByteISO8859_1

fontcharset.sansserif.0=sun.io.CharToByteISO8859_1

fontcharset.sansserif.italic.0=sun.io.CharToByteISO8859_1

fontcharset.sansserif.bold.0=sun.io.CharToByteISO8859_1

fontcharset.sansserif.bolditalic.0=sun.io.CharToByteISO8859_1

fontcharset.monospaced.0=sun.io.CharToByteISO8859_1

fontcharset.monospaced.italic.0=sun.io.CharToByteISO8859_1

fontcharset.monospaced.bold.0=sun.io.CharToByteISO8859_1

fontcharset.monospaced.bolditalic.0=sun.io.CharToByteISO8859_1

fontcharset.dialog.0=sun.io.CharToByteISO8859_1

fontcharset.dialog.italic.0=sun.io.CharToByteISO8859_1

fontcharset.dialog.bold.0=sun.io.CharToByteISO8859_1

fontcharset.dialog.bolditalic.0=sun.io.CharToByteISO8859_1

fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1

fontcharset.dialoginput.italic.0=sun.io.CharToByteISO8859_1

fontcharset.dialoginput.bold.0=sun.io.CharToByteISO8859_1

fontcharset.dialoginput.bolditalic.0=sun.io.CharToByteISO8859_1

fontcharset.zapfdingbats.0=sun.awt.CharToByteSymbol

fontcharset.default.0=sun.io.CharToByteISO8859_1


# exclusion info

exclusion.serif.0=0100-20ab,20ad-ffff
exclusion.serif.italic.0=0100-20ab,20ad-ffff
exclusion.serif.bold.0=0100-20ab,20ad-ffff
exclusion.serif.bolditalic.0=0100-20ab,20ad-ffff
exclusion.sansserif.0=0100-20ab,20ad-ffff
exclusion.sansserif.italic.0=0100-20ab,20ad-ffff
exclusion.sansserif.bold.0=0100-20ab,20ad-ffff
exclusion.sansserif.bolditalic.0=0100-20ab,20ad-ffff
exclusion.monospaced.0=0100-20ab,20ad-ffff
exclusion.monospaced.italic.0=0100-20ab,20ad-ffff
exclusion.monospaced.bold.0=0100-20ab,20ad-ffff
exclusion.monospaced.bolditalic.0=0100-20ab,20ad-ffff
exclusion.dialog.0=0100-20ab,20ad-ffff
exclusion.dialog.italic.0=0100-20ab,20ad-ffff
exclusion.dialog.bold.0=0100-20ab,20ad-ffff
exclusion.dialog.bolditalic.0=0100-20ab,20ad-ffff
exclusion.dialoginput.0=0100-20ab,20ad-ffff
exclusion.dialoginput.italic.0=0100-20ab,20ad-ffff
exclusion.dialoginput.bold.0=0100-20ab,20ad-ffff
exclusion.dialoginput.bolditalic.0=0100-20ab,20ad-ffff

# X11 Specific font set (necessary for TextArea and TextField)

fontset.serif.plain=\
-ibm-times new roman-medium-r-normal--*-%d-0-0-p-*-iso8859-1
fontset.serif.italic=\
-ibm-times new roman-medium-i-normal--*-%d-0-0-p-*-iso8859-1
fontset.serif.bold=\
-ibm-times new roman-bold-r-normal--*-%d-0-0-p-*-iso8859-1
fontset.serif.bolditalic=\
-ibm-times new roman-bold-i-normal--*-%d-0-0-p-*-iso8859-1

fontset.sansserif.plain=\
-ibm-helvetica-medium-r-normal--*-%d-0-0-p-*-iso8859-1
fontset.sansserif.italic=\
-ibm-helvetica-medium-i-normal--*-%d-0-0-p-*-iso8859-1
fontset.sansserif.bold=\
-ibm-helvetica-bold-r-normal--*-%d-0-0-p-*-iso8859-1
fontset.sansserif.bolditalic=\
-ibm-helvetica-bold-i-normal--*-%d-0-0-p-*-iso8859-1

fontset.monospaced.plain=\
-ibm-courier-medium-r-normal--*-%d-0-0-m-*-iso8859-1
fontset.monospaced.italic=\
-ibm-courier-medium-i-normal--*-%d-0-0-m-*-iso8859-1
fontset.monospaced.bold=\
-ibm-courier-bold-r-normal--*-%d-0-0-m-*-iso8859-1
fontset.monospaced.bolditalic=\
-ibm-courier-bold-i-normal--*-%d-0-0-m-*-iso8859-1

fontset.dialog.plain=\
-ibm-helvetica-medium-r-normal--*-%d-0-0-p-*-iso8859-1
fontset.dialog.italic=\
-ibm-helvetica-medium-i-normal--*-%d-0-0-p-*-iso8859-1
fontset.dialog.bold=\
-ibm-helvetica-bold-r-normal--*-%d-0-0-p-*-iso8859-1
fontset.dialog.bolditalic=\
-ibm-helvetica-bold-i-normal--*-%d-0-0-p-*-iso8859-1

fontset.dialoginput.plain=\
-ibm-courier-medium-r-normal--*-%d-0-0-p-*-iso8859-1
fontset.dialoginput.italic=\
-ibm-courier-medium-i-normal--*-%d-0-0-p-*-iso8859-1
fontset.dialoginput.bold=\
-ibm-courier-bold-r-normal--*-%d-0-0-p-*-iso8859-1
fontset.dialoginput.bolditalic=\
-ibm-courier-bold-i-normal--*-%d-0-0-p-*-iso8859-1

fontset.default=\
-ibm-helvetica-medium-r-normal--*-%d-0-0-p-*-iso8859-1

#
# unix performance feature ibm.2869
ibm.java2d.useawtfonts=1


Any help would be greatly appreciated.

---
duma


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation