← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #165384]: JRuby: Java NullPointerException if imagefile not found

 

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

RaiMan posted a new comment:
I found the source of the problem: It is so simple - LOL

*** have sikuli-script.jar in the class-path, before JRuby interpreter
starts to run the script!

I do not know, how you run your JRuby scripts (I am using Netbeans 6.9
on my Mac Lion), but if sikuli-script.jar is in java classpath BEFORE
JRuby interpreter starts up, the problem does not occur.

Trying to add sikuli-script.jar to the class-path
(setSystemProperty("java.class.path", "...")) after the script has
started does have any effect.

Running JRuby directly from commandline: I have not found until now, how
to specify classpath in this case.

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