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.awt.HeadlessException

alex

Location : Rome
Member since : Aug 25, 2004
Messages : 1
 Aug 25, 2004 at 12:24 PM
Hello everybody , I hope someone can help me....
My System : Bea WebLogic 8.1,Sun Solaris 8,jdk141_05
I have this kind of exception:

java.awt.HeadlessException at
sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:66)

at this line of my code :

com.eteks.java2d.PJAGraphicsConfiguration gc = (com.eteks.java2d.PJAGraphicsConfiguration) com.eteks.java2d.PJAGraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration();

I have before set on setDomainEnv.sh of Bea this properties :
JAVA_OPTIONS="${JAVA_OPTIONS} ${JAVA_PROPERTIES} -Djava.awt.headless=true -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment -Djava2d.font.usePlatformFont=false -Djava.awt.fonts=/usr/openwin/lib/X11/fonts/TrueType/ -Xbootclasspath/a:/rss_appl/rss_svil01/pja.jar"

(rss_appl/rss_svil01 is my APPLDIR)

THANKS!!!

lemval

Member since : May 21, 2004
Messages : 5
 Aug 30, 2004 at 2:43 PM
Why do you use both headless and PJA? PJA is meant to replace the native window toolkit. Headless mode is meant to not use the native window toolkit.


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation