← Back to team overview

sikuli-driver team mailing list archive

[Question #230722]: Receiving ExceptionInInitializerError

 

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

I'm receiving a 'java.lang.ExceptionInInitializerError' when trying to run Sikuli in Netbeans. Here's my code:

import sys
lib = "C:\\sikuli-script\\Lib"
sys.path.append(lib)
from sikuli import *
popup("test")

Here's the error:

Traceback (most recent call last):
  File "C:\My Documents\NetBeansProjects\Test\src\test.py", line 2, in <module>
    from sikuli import *
  File "C:\sikuli-script\Lib\sikuli\__init__.py", line 3, in <module>
    from Sikuli import *
  File "C:\sikuli-script\Lib\sikuli\Sikuli.py", line 17, in <module>
    from Region import *
  File "C:\sikuli-script\Lib\sikuli\Region.py", line 20, in <module>
    class Region(JRegion):
java.lang.ExceptionInInitializerError

	at org.sikuli.script.Region.<clinit>(Unknown Source)
.......(A ton more errors)
........
Caused by: java.lang.NullPointerException

	at org.sikuli.script.Settings.<clinit>(Unknown Source)

	... 78 more


java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError


Here's a summary of what I've done so far:

1) Installed 32 bit java (I tried 64 bit but switched to 32 to see if it would help, it doesn't)
2) I have my C:\Program Files (x86)\Java\jre7\bin,C:\Program Files (x86)\Sikuli\libs, C:\sikuli-script\Lib, C:\sikuli-script\ all in my system path variable.
3) I've added a SIKULI_HOME variable and set it to C:\Program Files (x86)\Sikuli\libs
4) I've created a C:\sikuli-script folder that contains C:\sikuli-script\sikuli-script.jar and C:\sikuli-script\Lib
5) I'm using Jython 2.5.3 by default and added C:\sikuli-script\Lib to my Python path.
6) I've added C:\sikuli-script\sikuli-script.jar to my Java path.
7) I've added the following lines to my Jython C:\jython2.5.3\jython.bat

=====
@echo off

set sikuli_jar=C:\sikuli-script\sikuli-script.jar

set CLASSPATH=%sikuli_jar%
set JYTHONPATH=%sikuli_jar%\Lib
=====

All help is appreciated. I'm using Netbeans 7.3, Windows 7 64 bit, JDK 1.7 and JRE 7.

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