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
|Messages of subject
java.lang.Error: Could not find class: com.eteks.java2d.PJAGraphicsEnvironment
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:
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:
I also tried extracting the classes from pja.jar and placing them in:
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:
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,
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 :