Home pageFind It!Contact PJAPJA documentation


 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 Getting JFeechart working in a servlet environment


Location : Luxembourg
Member since : Oct 27, 2003
Messages : 2
 Oct 27, 2003 at 10:58 AM
Yet another issue with the following exception :

java.lang.Error: Could not find class: com.eteks.java2d.PJAGraphicsEnvironment

I'm trying to get my servlet running on a Linux/JDK1.3 environment.

Have added the following instructions in my code :

System.setProperty("awt.toolkit", "com.eteks.awt.PJAToolkit") ;
System.setProperty("java.awt.graphicsenv", "com.eteks.java2d.PJAGraphicsEnvironment") ;
System.setProperty("java.awt.fonts", "/usr/local/jdk1.3.1_09/jre/lib/fonts") ;
System.setProperty("java2d.font.usePlatformFont", "false") ;
System.setProperty("user.home", "DEPLOY_HOME") ;

This is nasty but I'll make my code cleaner after debugging :-)

DEPLOY_HOME is the base dir where my web application resides, and we can find the following files in DEPLOY_HOME/WEB-INF/lib :

- pja.jar
- pjatools.jar
- font.properties (the one included in the pja_2.4.zip archive)

I also added the following command in my build.xml file :

<target name="compile" depends="prepare">
<javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"

I'm still getting the exception though, can someone tell me where I made a mistake ??

Thanks in advance


Location : Luxembourg
Member since : Oct 27, 2003
Messages : 2
 Oct 27, 2003 at 11:53 AM
I found that setting bootclasspath is more useful at runtime rather than at compile time :-)

Using TOMCAT_OPTS resolved my problem, but what if my servlet is running on Websphere ?? :'-(



Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Oct 27, 2003 at 1:53 PM
> What if my servlet is running on Websphere ?? :'-(

A few subjects speaks about Websphere on this forum :
Manu (moderator/modérateur)

Home pageFind It!ContactTop

© Copyrights 1997-2014 eTeks - All rights reserved

PJAPJA documentation