← Back to team overview

sikuli-driver team mailing list archive

[Question #179497]: Launching an eclipse project from cmd line

 

New question #179497 on Sikuli:
https://answers.launchpad.net/sikuli/+question/179497

I've got an eclipse project that is integrated with sikuli. I want to be able to run different projects sequentially from the cmd line as separate jar files. When I attempted to run the first package, I got the error below:

[info] Windows utilities loaded.
[log] Meta+TYPE "m"
[info] Sikuli vision engine loaded.
[info] Text Recognizer inited.
java.lang.NullPointerException
        at java.io.Reader.<init>(Unknown Source)
        at java.io.InputStreamReader.<init>(Unknown Source)
        at org.sikuli.script.ResourceExtractor.writeFileList(ResourceExtractor.j
ava:23)
        at org.sikuli.script.ResourceExtractor.extract(ResourceExtractor.java:17
)
        at org.sikuli.script.TextRecognizer.init(TextRecognizer.java:36)
        at org.sikuli.script.TextRecognizer.<init>(TextRecognizer.java:28)
        at org.sikuli.script.TextRecognizer.getInstance(TextRecognizer.java:55)
        at org.sikuli.script.TextRecognizer.<clinit>(TextRecognizer.java:20)
        at org.sikuli.script.Finder.setTargetSmartly(Finder.java:95)
        at org.sikuli.script.Finder.setFindInput(Finder.java:82)
        at org.sikuli.script.Finder.find(Finder.java:108)
        at org.sikuli.script.Region.doFind(Region.java:770)
        at org.sikuli.script.Region$RepeatableFind.run(Region.java:1160)
        at org.sikuli.script.Region$Repeatable.repeat(Region.java:1131)
        at org.sikuli.script.Region.wait(Region.java:406)
        at org.sikuli.script.Region.find(Region.java:308)
        at org.sikuli.script.Region.getLocationFromPSRML(Region.java:856)
        at org.sikuli.script.Region.doubleClick(Region.java:497)
        at org.lmsautomation.dryrun.MainClass.setupLogin(MainClass.java:20)
        at org.lmsautomation.dryrun.MainClass.main(MainClass.java:62)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)

I exported the project as an executable jar file and I packaged all externally referenced libraries into the jar file. What am I doing wrong?

Here's what I'm using:
Sikuli X-1.0rc3 (r905)
Eclipse v4.1.0

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.