sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17589
[Question #227389]: Diff in running Sikuli/Jython script from eclipse and command line
New question #227389 on Sikuli:
https://answers.launchpad.net/sikuli/+question/227389
Hi,
I am using eclipse and Jython to run my Sikuli scripts, but looking for the solution to run the same script from the command line. I googled that topic and found some explanations here http://doc.sikuli.org/faq/010-command-line.html.
However, when I was trying to create .bat file I got the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: Files\Sikuli
Caused by: java.lang.ClassNotFoundException: Files\Sikuli
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Files\Sikuli. Program will exit.
Executing script from eclipse is fine. I understand that eclipse behind the scene links all of the required libraries. So my question is what do I need to set in order to execute my script from the command line? Here is my path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32
\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Progra
m Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Lenov
o;C:\Program Files\Lenovo\Access Connections\;C:\Python27;C:\Python27\Scripts;C:
\Program Files\Sikuli X\libs;C:\Program Files\Java\jre6\\bin
Any advice will be greatly appreciable.
Thanks,
Eugene
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.