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 WebSphere Enviornment 5.1

navin

Member since : Jul 7, 2004
Messages : 3
 Jul 7, 2004 at 3:11 AM
I have added necessary changes i.e in bootclasspath added pja.jar.
I am just testing whether java.awt.Toolkit.getDefaultToolkit () , calls com.eteks.awt.PJAToolkit. And it does calls . but iam getting error saying com.eteks.awt.PJAToolkit not found.

here is the piece of jsp code.

1 Class cls = com.eteks.awt.PJAToolkit.class;
2 out.println ("Loaded class " + cls +"<BR>");
3 java.awt.Toolkit.getDefaultToolkit ();

Line 2. gets executed successfully. But when i call java.awt.Toolkit.getDefaultToolkit (); It throws error saying class not found.

I would really appreciate your help.
Thanks,
Navin

celiorod

Location : Portugal
Member since : Jul 5, 2004
Messages : 2
 Jul 7, 2004 at 1:09 PM
Hello,

Websphere 5.1 uses Java JDK 1.4, with this JDK we can passa an argument to the JVM.
quote from JPA docs

" For your information, the JDK version >= 1.4 includes its own headless system (see AWT Enhancements in JDK 1.4 docs(http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html#headless)) : Try first to set the system property java.awt.headless to true or add the -Djava.awt.headless=true option to your Java command line to use it. If it doesn't work, then try PJA Toolkit with the options described in the previous paragraph."

hope that helps,
Celio

navin

Member since : Jul 7, 2004
Messages : 3
 Jul 7, 2004 at 5:33 PM
Hi Celio,
Really appreciate ur quick response.
Currently we have WebSphere 5.0.1, Still stuck with jdk1.3.
I have added all the combinations in bootclasspath.Getting same error.
Some times iam getting error saying com.eteks.java2d.PJAGraphicsEnvironment not found.

Thanks,
Navin


Home pageFind It!ContactTop

© Copyrights 1997-2014 eTeks - All rights reserved

PJAPJA documentation