<DIV>hello: </DIV>
<DIV>in the site : </DIV>
<DIV><A href="http://www.kaffe.org/pipermail/kaffe/2006-October/104687.html">http://www.kaffe.org/pipermail/kaffe/2006-October/104687.html</A></DIV>
<DIV>/*********************************************************<BR>I am trying to run swing examples with kaffe+nanox but it is giving<BR>error as:<BR><BR>java.lang.NoSuchMethodError: java/awt/Toolkit.addAWTEventListener(Ljava/awt/event/AWTEventListener;J)V<BR> at javax.swing.JPanel.<init> (JPanel.java:109)<BR> at javax.swing.JPanel.<init> (JPanel.java:85)<BR> at javax.swing.JRootPane.createGlassPane (JRootPane.java:567)<BR> at javax.swing.JRootPane.getGlassPane (JRootPane.java:474)<BR> at javax.swing.JRootPane.<init> (JRootPane.java:526)<BR> at javax.swing.JFrame.createRootPane (JFrame.java:221)<BR> at javax.swing.JFrame.getRootPane (JFrame.java:205)<BR> at javax.swing.JFrame.frameInit (JFrame.java:152)<BR> at javax.swing.JFrame.<init> (JFrame.java:114)<BR> at test2.main (test2.java:8)<BR><BR>so during its analysis i found that the program crash when it internally try<BR>to call any UImamagerjava function. I also found inside UIManager.java it <BR>stuct inside static{} block when a call to functoin setLookAndFeel(LookAndFeel newLookAndFeel)<BR>is made. Inside setLookAndFeel stuck at:<BR><BR>         newLookAndFeel.initialize();<BR><BR>I found this function is defined in BasicLookAndFeel.java file. Inside<BR>this intialize() function it stuck at:<BR><BR>         toolkitaddAWTEventListener(popupHelper, AWTEvent.MOUSE_EVENT_MASK);<BR><BR><BR>Here i found there are two Toolkit.java file:<BR>1)/software/kaffe-1.1.7/libraries/javalib/awt-implementations/kaffe/java/awt/Toolkit.java<BR>2)/software/kaffe-1.1.7/libraries/javalib/external/classpath/java/awt/Toolkit.java<BR><BR>I found that this function defined in (2)Toolkit.java but it try to include<BR>(1)Toolkit.java and hence not able to find the function addAWTEventListener(popupHelper, AWTEvent.MOUSE_EVENT_MASK)<BR><BR>SUGGEST some methods or clue so that i can get out of this problem.<BR>Thanks<BR>Praveen Kumar<BR>*****************************************************************/</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR> now I meet the same question above mentioning...i use the kaffe(1.1.7)under the redhat 9 ..and useage: kaffe -Xkaffe-xlib-awt ap;<BR>the error is following: <BR>java.lang.NoSuchMethodError: java/awt/Toolkit.addAWTEventListener(Ljava/awt/event/AWTEventListener;J)V<BR> at javax.swing.JPanel.updateUI (JPanel.java:128)<BR> at javaxswing.JPanel.<init> (JPanel.java:108)<BR> at javax.swingJPanel.<init> (JPanel.java:85)<BR> at javax.swing.JRootPane.createGlassPane (JRootPane.java:563)<BR> at javax.swing.JRootPane.getGlassPane (JRootPane.java:474)<BR> at javax.swing.JRootPane.<init> (JRootPane.java:526)<BR> at javax.swing.JFrame.createRootPane (JFrame.java:219)<BR> at javax.swing.JFrame.getRootPane (JFrame.java:204)<BR> at javax.swing.JFrame.frameInit (JFrame.java:152)<BR> at javax.swing.JFrame.<init> (JFrame.java:114)<BR> at ErsBlocksGame.<init> (ErsBlocksGamejava:90)<BR> at ErsBlocksGame.main (ErsBlocksGame.java:540)<BR> at java.lang.reflect.Method.invoke0 (Method.java)<BR> at java.lang.reflect.Method.invoke (Method.java:255)<BR> at org.kaffe.jar.ExecJarName.main (ExecJarName.java:64)<BR> at org.kaffe.jar.ExecJar.main (ExecJar.java:57)<BR><BR>so I want you help me,,,give me some ideas .....could you help me ...thanks a lots </DIV>
<DIV> </DIV>