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 Problem getting PJA to be graphics environment

helge

Member since : Oct 13, 2003
Messages : 4
 Oct 13, 2003 at 10:47 AM
Hi,

I'm running JRE on solaris version 1.4.2_02, with option
-Dawt.toolkit=com.eteks.awt.PJAToolkit, and
-Djava.awt.headless=true

I want to avoid the dependence of a valid DISPLAY beeing set
on my server.
Still, I'm getting exceptions like this:

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at dori.jasper.engine.fill.JRBaseFiller.<clinit>(JRBaseFiller.java:210)
at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:150)
at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:350)
at com.edbtelesciences.generic.reports.ReportImpl$Executor.run(ReportImpl.java:544)

Any suggestions?

---
Best regards,
Helge Fredriksen

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Oct 14, 2003 at 8:37 AM
From JDK 1.4, you should use either Java Headless Toolkit or PJA Toolkit.
Try first Java Headless with the option :
-Djava.awt.headless=true

If it doesn't work, then try PJA Toolkit with the option :
-Xbootclasspath/a:/path/to/lib/pja.jar -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment -Djava2d.font.usePlatformFont=false -Djava.awt.fonts=/path/to/fonts
---
Manu (moderator/modérateur)

helge

Member since : Oct 13, 2003
Messages : 4
 Oct 17, 2003 at 8:54 AM
Hmmm,

I've tried to follow your recipe as well as I could, and I seem to be able to load the Graphics Environment now. But now I encountered another system exception with the following exception text:

sun.java2d.SunGraphicsEnvironment.createFontProperties()Lsun/awt/FontProperties;

To try solving this problem, I sat the parameter -Duser.home=pja.home
(location of pja "lib/fonts.properties") as described in your PJA toolkit user guide. I also tried the other option, replacing the system fonts.properties with your fonts.properties without any change in the exception text.

Any suggestions on how to proceed?
---
Best regards,
Helge Fredriksen

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Oct 17, 2003 at 1:20 PM
Just try PJA 2.5 Beta available at http://www.eteks.com/pja/en/#Download
---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2014 eTeks - All rights reserved

PJAPJA documentation