← 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: Open => Answered

RaiMan proposed the following answer:
*** do not put anything related to C-Python in your project props
(cannot be used with Jython/Java/Sikuli !!) - might lead to surprising
situations ;-)

So do not do that:
-Project Properties >> Python >> Python Path, I've added C:\Python33\Lib

*** putting anything into Project Properties >> Python >> Manage 
.... does not help

*** so if we are still talking about Netbeans:
into your empty project properties add
path-to-sikuli-script.jar/Lib
path-to-sikuli-script.jar

If it is not possible to enter
path-to-sikuli-script.jar/Lib

just enter twice:
path-to-sikuli-script.jar

and do:

Now close your project and close NetBeans.
- Go into your project folder and into folder nbproject
- Edit project.properties with a suitable editor and add /Lib to the first entry of path-to-sikuli-script.jar
- Take care not to insert any blanks, linefeeds or touch the separator character |
- Save the file and close the editor

Now open your IDE and open your Python project.
Now all should be fine.

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