Having Problems using Sikuli with IKVM

Michael Larson <[email protected]>
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <CAPz=hZH7XgdQ7FO14ms3yfFifaumAJgJns3bt1uJXMwkvTTKyg@mail.gmail.com>
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

_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.