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 java.lang.Error: Could not find class: com.eteks.java2d.PJAGraphicsEnvironment

rteller

Location : Santa Roca, CA USA
Member since : Jul 11, 2007
Messages : 1
 Jul 11, 2007 at 11:57 PM
I'm trying to get the PJA toolkit to work in my web application, but I'm
having the same problem that several others have reported:

2007-07-11 14:25:25 - Ctx( /onque ): Exception in: R( /onque + /servlet/ImageServlet + null) - java.lang.Error: Could not find class: com.eteks.java2d.PJAGraphicsEnvironment

I'm using the following environment:
Java: 1.3.1_01
Apache: 1.3
Tomcat: 3.2.4
Windows: XP Pro

I'm testing this on my Windows development machine, but it will actually be used on a Unix server running Solaris 8. The server has no graphics capability - hence the need for PJA.

I tried placing the jar files in both the following locations:
jakarta-tomcat-3.2.4\lib
jakarta-tomcat-3.2.4\webapps\onque\WEB-INF\lib

I also tried extracting the classes from pja.jar and placing them in:
jakarta-tomcat-3.2.4\webapps\onque\WEB-INF\classes
This produced the same exception.

In the init metod of my servlet, I've set the system properties as follows:
System.setProperty ("awt.toolkit", "com.eteks.awt.PJAToolkit");
System.setProperty ("java.awt.graphicsenv", "com.eteks.java2d.PJAGraphicsEnvironment");
System.setProperty ("java.awt.fonts", "C:/WINDOWS/Fonts");

I tried placing the code that sets the properties in the doGet method - same result.

Also tried setting the fonts property to:
C:\Development\Java\jdk1.3.1_01\jre\lib\fonts
Same result.

I've seen several references to the need to use the command:
-xbootclasspath/a:<path to pja.jar>
but I'm unclear on how to apply it in my environment.

Can PJA work in the environment described above? If so, how to do it? I've tried every approach I can think of.

Thanks for any suggestions,
Rick Teller

---
Rick Teller
OnQue Technologies

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Jul 14, 2007 at 8:20 AM
Please, read the following subject, it should help you :
http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=17
---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation