Can't make PyCharm run sikuli scripts

Asked by Zeks

I can't make PyCharm see sikuli environment for some reason.

sikuli 1.1 070615 nightly build
jython 2.7
windows 7 64 bit
Pycharm 4.5.1

Project run settings:
http://s14.postimg.org/lcbh62wyp/08_06_2015_19_17_34.png

I've set CLASSPATH as per screenshot and added sikuli jar as "Add content root" in project settings.
Still I only get the error
" RunTimeINIT: *** terminating: no valid Java context for SikuliX available (java.security.CodeSource.getLocation() is null)"

what can this be?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Zeks
Solved:
Last query:
Last reply:

This question was reopened

  • by Zeks
Revision history for this message
Zeks (enmarantispam) said :
#1

I've even tried setting classpath as a global variable and running jython from windows command line as:

 jython.exe -Dpython.path=K:\api_sikuli\sikulixapi.jar K:/sikuli/pdi/Tests/t_spp.sikuli/t_spp.py

wit the same result. So it's not exactly a PyCharm problem, more of a jython/sikuliapi problem. What am I missing here?

Revision history for this message
Zeks (enmarantispam) said :
#2

I've even tried setting classpath as a global variable and running jython from windows command line as:

 jython.exe -Dpython.path=K:\api_sikuli\sikulixapi.jar K:/sikuli/pdi/Tests/t_spp.sikuli/t_spp.py

wit the same result. So it's not exactly a PyCharm problem, more of a jython/sikuliapi problem. What am I missing here?

Revision history for this message
Zeks (enmarantispam) said :
#3

Ooops. sorry for double posting, launchpad has weird interface >_<

Revision history for this message
Zeks (enmarantispam) said :
#4

I've actually managed to make things work. In addition to -Dpython,path there needs to be:
-cp K:\api_sikuli\sikulixapi.jar in the command line. CLASSPATH variable simply does not work.

Revision history for this message
Pierre Best (pierre-best) said :
#5

As another datapoint, I'm running IntelliJ IDEA Ultimate + Python plugin and setting CLASSPATH to point at sikulixapi.jar works for me.