[request] sikulixapi.jar should be useable with OSGI

Bug #1537216 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Medium
RaiMan

Bug Description

****************** see related question

Hi,

I am facing a null pointer exception when trying to use sikuli api in my project:

java.lang.ExceptionInInitializerError
 at eu.iac3.mathMS.guiTestingTest.GuiTestingTest.testEditor(GuiTestingTest.java:144)
Caused by: java.lang.NullPointerException
 at org.sikuli.script.RunTime.init(RunTime.java:635)
 at org.sikuli.script.RunTime.get(RunTime.java:291)
 at org.sikuli.script.RunTime.get(RunTime.java:126)
 at org.sikuli.script.RunTime.get(RunTime.java:316)
 at org.sikuli.script.Region.<clinit>(Region.java:31)

I am using maven integration in eclipse to launch an OSGI Springframework test and I think I have a misconfiguration or something similar.
I set the SIKULI_HOME to the sikuli installation path.

The error seems relative to getting the parent directory of a class. The following line returns null and is the origin of the problem:
File fSxBase = fSxBaseJar.getParentFile();
The class related to the problem is org.sikuli.ide.SikuliIDE or org.sikuli.setup.RunSetup, I am not sure.

Can anyone help me? I am desperate, using Sikuli api would help a lot in my project tests.

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.0
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.