Re: Having Problems using Sikuli with IKVM
Jeroen Frijters <[email protected]>
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Michael, You are mixing two IKVM versions. The IKVM.AWT.WinForms.dll you are using is from 7.4, but the IKVM.OpenJDK.SwingAWT.dll is from 7.3 or earlier. Regards, Jeroen > -----Original Message----- > From: Michael Larson [mailto:[email protected]] > Sent: Friday, June 13, 2014 0:38 > To: [email protected] > Subject: [Ikvm-developers] Having Problems using Sikuli with IKVM > > Hello Everyone, > > I was trying to use Sikuli on IKVM and I am running into problems. I > found that IKVM.AWT.WinForms is missing the following function: > > > public override java.awt.peer.KeyboardFocusManagerPeer > createKeyboardFocusManagerPeer(java.awt.KeyboardFocusManager manager) { > return new NetKeyboardFocusManagerPeer(manager); > } > I narrowed down the problem if I just create this object > > try { > java.awt.Robot obj = new Robot(); > } catch (AWTException e1) { > // TODO Auto-generated catch block > e1.printStackTrace(); > } > > the following exception gets thrown: > > Method 'createKeyboardFocusManagerPeer' in type 'ikvm.awt.NetToolkit' > from assem bly 'IKVM.AWT.WinForms, Version=7.4.5196.0, Culture=neutral, > PublicKeyToken=1323 5d27fcbfff58' does not have an implementation. > at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean > throwOnError, Boolean ignoreCase, Boolean reflectionOnly, > StackCrawlMarkHandle stackMark, IntP tr pPrivHostBinder, Boolean > loadTypeFromPartialName, ObjectHandleOnStack type) > at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean > throwOnError, Boolean ignoreCase, Boolean reflectionOnly, > StackCrawlMark& stackMark, IntPtr pP rivHostBinder, Boolean > loadTypeFromPartialName) > at System.RuntimeType.GetType(String typeName, Boolean throwOnError, > Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) > at System.Type.GetType(String typeName) > at IKVM.NativeCode.java.lang.Class.forName0(String name, Boolean > initialize, ClassLoader loader) > at java.lang.Class.forName(String className, CallerID ) > at java.awt.Toolkit$2.run() > at java.security.AccessController.doPrivileged(Object , > AccessControlContext , CallerID ) > at java.security.AccessController.doPrivileged(PrivilegedAction > action, Calle rID ) > at java.awt.Toolkit.getDefaultToolkit() > at java.awt.Robot.init(GraphicsDevice ) > at java.awt.Robot..ctor() > > Seems like something is missing here. > > Thanks, > Michael ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems