| Messages of subject
	  PJA 2.4 on Linux jdk 1.3.1 | 
    
    
            
      | cjustusLocation : Ottawa / Canada Member since : Sep 11, 2003
 Messages : 1
 |  Sep 11, 2003 at 7:11 AM Great library... We've used pja before under jdk 1.1, and are now deploying to a site using jdk 1.3...
 I've read the FAQ... Getting an error that wasn't listed there:
 
 java.lang.ClassCastException: com.eteks.awt.PJAToolkit
 at sun.awt.GlobalCursorManager.getInstance(GlobalCursorManager.java:120)
 at sun.awt.GlobalCursorManager.updateCursorImmediately(GlobalCursorManager.java:91)
 at java.awt.Component.show(Component.java:923)
 at java.awt.Window.show(Window.java:396)
 at java.awt.Component.show(Component.java:946)
 at java.awt.Component.setVisible(Component.java:903)
 at com.other.Chart.process(Unknown Source)
 at com.other.HttpHandler.processChain(Unknown Source)
 at com.other.HttpHandler.processChain(Unknown Source)
 
 My classpath has pja.jar ...
 
 Here's my command line (ignore spaces and wrapping... I am 98% certain that it's correct...)
 
 "/usr/lib/j2se/1.3/bin/java"   -Xmx128000000 -Xbootclasspath/a:pja.jar -Dawt.
 toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGrap
 hicsEnvironment -Djava.awt.fonts=/usr/lib/j2se/1.3/jre/lib/fonts -Duser.home=. c
 om.zerog.lax.LAX "/home/fastbug/FastBugTrack/./FastBugTrack.lax" "/tmp/env.prope
 rties.16250"
 
 Here's my version of java (I'm on a Linux Debian 3.0 system):
 
 www:~/FastBugTrack> java -version
 java version "1.3.1"
 Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-02b-FCS)
 Java HotSpot(TM) Client VM (build Blackdown-1.3.1_02b-FCS, mixed mode)
 
 
 I've got a lib directory in my current directory, and the font.properties within this...
 
 Am I missing something?  I've searched the forum and haven't seen the classcastexception I'm seeing, and limited Linux problems (which don't seem to match mine :) )...
 
 Any help / suggestions would be appreciated...
 
 Thanks!
 | 
    
            
      | ManuLocation : Paris / France Member since : Apr 29, 2003
 Messages : 394
 |  Sep 11, 2003 at 8:53 AM > I've read the FAQ... Getting an error that wasn't listed there:
> java.lang.ClassCastException: com.eteks.awt.PJAToolkit
 > ...
 
 Please see the FAQ "Why the methods show () or setVisible () of the class java.awt.Component throws ClassCastException with JDK >= 1.3 ?" : Use addNotify() method instead of show() or setVisible() method, if you can...
 
 ---
 Manu (moderator/modérateur)
 | 
    
            
      | bowlaxLocation : UK Member since : Sep 22, 2003
 Messages : 1
 |  Sep 22, 2003 at 3:55 PM > Please see the FAQ "Why the methods show () or setVisible () of the class java.awt.Component throws ClassCastException with JDK >= 1.3 ?" : Use addNotify() method instead of show() or setVisible() method, if you can...
>
 
 Hi Manu
 
 I removed calls to setVisible but get the same exception on calls to removeAll() and add() in my JPanel. I'm maintaining someone else code here so apologies if this is a dumb question.
 
 Thanks
 Lee
 |