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 Apache/Tomcat : Could not find class: com.eteks.java2d.PJAGraphicsEnvironment

Sporties

Member since : Oct 13, 2003
Messages : 1
 Oct 13, 2003 at 12:03 PM
Hello,

I still get this error : Could not find class: com.eteks.java2d.PJAGraphicsEnvironment

Things i did were :
-> copied the pja.jar to my WEB-INF/lib dir
-> in jsp i set this properties :
System.setProperty ("java.awt.fonts",getServletContext().getRealPath("/pjafs"));
System.setProperty("awt.toolkit","com.eteks.awt.PJAToolkit");
System.setProperty("java.awt.graphicsenv","com.eteks.java2d.PJAGraphicsEnvironment");
System.setProperty("java2d.font.usePlatformFont","false");
System.setProperty("java.awt.headless","true");

Can someone help me what i'm doing wrong or have forgotten ?

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Oct 13, 2003 at 8:36 PM
Setting these options isn't enough. pja.jar must be added to bootclasspath with the java option -Xbootclasspath/a:pja.jar using for example the JAVA_OPTS environment variable (see http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=38#81 ).
By the way java.awt.fonts must contain some True Type fonts. PJAF font files are useless with a JDK >= 1.2 unless you can't set the -Xbootclasspath/a:pja.jar option. Please read subject at http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=90 for an example that should work in all cases.

---
Manu (moderator/modérateur)

Aman

Location : India
Member since : Jul 8, 2004
Messages : 1
 Jul 8, 2004 at 7:48 AM
Hi,
Setting the bootclasspath is out of scope for me as I do not have the requisite access permissions. Is there any other way around this problem?
Please advise.



> Setting these options isn't enough. pja.jar must be added to bootclasspath with the java option -Xbootclasspath/a:pja.jar using for example the JAVA_OPTS environment variable (see http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=38#81 ).
> By the way java.awt.fonts must contain some True Type fonts. PJAF font files are useless with a JDK >= 1.2 unless you can't set the -Xbootclasspath/a:pja.jar option. Please read subject at http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=90 for an example that should work in all cases.
>


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation