← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #230722]: [1.0] Receiving ExceptionInInitializerError ... Caused by: java.lang.NullPointerException at org.sikuli.script.Settings.<clinit>(Unknown Source) when using sikuli-script.jar with Jython (standalone or in NetBeans, Eclipse, ...)

 

Question #230722 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/230722

    Status: Answered => Open

tlondon is still having a problem:
Thank you for the solution. I wasn't able to following the last step
though. The project.properties file didn't have an entry to the .jar
file. It looks like this:

java.lib.path=
main.file=test.py
platform.active=default
python.lib.path=C:\\Python33\\Lib|
src.src.dir=src

Here is my new source code:

import java.lang.System
java.lang.System.setProperty("sikuli.Home", "C:\\Program Files (x86)\\Sikuli\sikuli-script.jar")
from sikuli import *
wait(4)

Here is what I have done:
-I have left all Sikuli stuff in one place
-I did not unjar sikuli-script,jar
-%SIKULI_HOME% points to C:\Program Files (x86)\Sikuli (I've tested it)
-Project Properties  >> Python >> Python Path, I've added C:\Python33\Lib
-Project Properties  >> Python >> Manage >> Jython 2.5.3 >> Python Path, I've added C:\jython 2.5.3\jython.jar, C:\Program Files (x86)\Sikuli\sikuli-script.jar\Lib, C:\Program Files (x86)\Sikuli\sikuli-script.jar
-Project Properties  >> Python >> Manage >> Jython 2.5.3 >> Java Path >> I've added C:\Program Files (x86)\Sikuli\sikuli-script.jar, C:\jython 2.5.3\jython.jar

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