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

sysiphe

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"
classpath="...:${lib.home}/pja.jar:${lib.home}/pjatools.jar"
bootclasspath="/usr/local/jdk1.3.1_09/jre/lib/rt.jar:${lib.home}/pja.jar"
/>
</target>


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

Thanks in advance

sysiphe

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 ?? :'-(

grmbll

Manu

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 :
http://www.eteks.com/pja/en/forum/search.jsp?search=websphere
---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2014 eTeks - All rights reserved

PJAPJA documentation