← 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

RaiMan proposed the following answer:
Tested on Win 7 64Bit ...

... but since you are using C:\\Program Files (x86), I made all my tests
with 32-Bit versions.

- Installed Netbeans 6.9.1 using a JRE 6 32-Bit
- downloaded the 32-Bit version of Sikuli 1.0.0
- installed the Python plugin
- installed Jython 2.5.3
- put the Sikuli stuff in C:\\Program Files (x86)\\Sikuli
- put C:\\Program Files (x86)\\Sikuli\\libs in system path (via system properties -> environment ....)
- made a new Python project in NetBeans
- in project properties python selected the 2.5.3 python, but left the path settings untouched
- in project properties added in the python path section twice C:\\Program Files (x86)\\Sikuli\\sikuli-script.jar
- closed NetBeans
- went to the project folder and edited the python path line in project properties in folder nbproject, so that the second entry
C:\\Program Files (x86)\\Sikuli\\sikuliscript.jar now reads
C:\\Program Files (x86)\\Sikuli\\sikuliscript.jar\\Lib
and saved the editing
- restarted Netbeans
- ran the project and everything works as expected:

the script:
import java.lang.System
java.lang.System.setProperty("sikuli.Home", "C:\\Program Files (x86)\\Sikuli")
from sikuli import *
print "hello"

So everything is exactly as I have it written in the above
solution/workaround.

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