dcsimg
Junit Test
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, September 7, 2001 08:33 AM

Hi When I try to run Junit(3.7) example java junit.swingui.TestRunner junit.samples.AllTests I am getting following error, Iam using jdk1.3 Exception in thread "main" java.lang.NoSuchMethodError: handleEnterMessage at sun.awt.windows.WDropTargetContextPeer.Initialize(Native Method) at sun.awt.windows.WToolkit. (WToolkit.java:150) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at java.awt.Toolkit$2.run(Toolkit.java:510) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489) at sun.awt.GlobalCursorManager$Cursor   More>>


Hi


When I try to run Junit(3.7) example java junit.swingui.TestRunner junit.samples.AllTests


I am getting following error, Iam using jdk1.3


Exception in thread "main" java.lang.NoSuchMethodError: handleEnterMessage
at sun.awt.windows.WDropTargetContextPeer.Initialize(Native Method)
at sun.awt.windows.WToolkit. (WToolkit.java:150)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at java.awt.Toolkit$2.run(Toolkit.java:510)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
at sun.awt.GlobalCursorManager$CursorEvent. (GlobalCursorManager.java:28)
at sun.awt.GlobalCursorManager. (GlobalCursorManager.java:65)
at java.awt.Cursor.initIDs(Native Method)
at java.awt.Cursor. (Cursor.java:171)
at java.awt.Window. (Window.java:186)
at java.awt.Frame. (Frame.java:315)
at java.awt.Frame. (Frame.java:294)
at javax.swing.JFrame. (JFrame.java:174)
at junit.swingui.TestRunner.createFrame(TestRunner.java:236)
at junit.swingui.TestRunner.createUI(TestRunner.java:382)
at junit.swingui.TestRunner.start(TestRunner.java:733)
at junit.swingui.TestRunner.main(TestRunner.java:58)




but when I execute java junit.textui.TestRunner junit.samples.AllTests



It's run fine.



If anybody what is the problem ?

   <<Less

Re: Junit Test

Posted By:   Karthikeyan_B  
Posted On:   Monday, February 25, 2002 06:38 AM

Which OS you are using? If yes, have you ever tried to change the ToolKit of java?

To check the toolkit that you are using, please see the system property java.awt.toolkit.
About | Sitemap | Contact