Question #171922 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171922
Sunil Goswami posted a new comment:
@RaiMan
Thank you for such a quick response.
:)
There is not QTP Java plugin in Eclipse, it's those variables that create the
problem when trying to run the program from Eclipse. (JAVA_OPTIONS and
JAVA_TOOL_OPTIONS)
I have tried with Sikuli-IDE 1.0.1 and Sikulixapi1.02. I could not find a jar
for 1.1.0 only a Ruby gem, and I am not using Ruby in my environment, so I
didn't know how to install 1.1.0.
I have written an extremely barebones program to test this but not able
to make it work yet.
package com.companyname.projectname.testname;
import org.sikuli.api.*;
public class Test_Class {
public static void main(String[] args) {
ScreenRegion s = new DesktopScreenRegion();
s.capture();
}
}
I have added the Sikulixapi1.0.2.jar to the project's build path. I am
using Java 1.7
When I run the program, I get this error on the console.
java.util.NoSuchElementException: No mapping for class sun.awt.windows.WToolkit
at
com.mercury.bcel.TransformerXmlFile$MappingLocator.setMapping(TransformerXmlFile.java:96)
at
com.mercury.bcel.TransformerFactory.createTransformer(TransformerFactory.java:56)
at
com.mercury.bcel.TransformerMainImpl.transform(TransformerMainImpl.java:33)
at com.mercury.bcel.TransformerMain.transform(TransformerMain.java:35)
at
com.mercury.javashared.transform.TransformersChain.transform(TransformersChain.java:35)
at
com.mercury.javashared.transform.CommunicationThread.processTransformRequest(CommunicationThread.java:76)
at
com.mercury.javashared.transform.CommunicationThread.run(CommunicationThread.java:42)
It's repeated a few times in the console.
Is there anything I can tell you which would help you understand my
situation? Can I install Sikuli api 1.1.0 without using Ruby on Windows?
I don't need the same program to run QTP but I need to keep QTP on the
same machine as other tests in my framework use QTP to test Java and
Oracle based applications.
Thank you, RaiMan.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp