← Back to team overview

sikuli-driver team mailing list archive

[Question #271751]: Where to get sikuli-script.jar to run Jython .py from Java

 

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

Hi, 

Where to get sikuli-script.jar to run Jython .py from Java?

I am getting the following error as seen below,

Exception in thread "main" Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Jars\sikuli-setup.jar\Lib\sikuli\__init__.py", line 5, in <module>
java.lang.NoClassDefFoundError: sikuli (wrong name: Sikuli)

	at java.lang.ClassLoader.defineClass1(Native Method)

	at java.lang.ClassLoader.defineClass(Unknown Source)

	at java.security.SecureClassLoader.defineClass(Unknown Source)

	at java.net.URLClassLoader.defineClass(Unknown Source)

	at java.net.URLClassLoader.access$100(Unknown Source)

	at java.net.URLClassLoader$1.run(Unknown Source)

	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)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at java.lang.Class.forName0(Native Method)

	at java.lang.Class.forName(Unknown Source)

	at org.python.core.Py.loadAndInitClass(Py.java:909)

	at org.python.core.Py.findClassInternal(Py.java:844)

	at org.python.core.Py.findClassEx(Py.java:895)

	at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)

	at org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)

	at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)

	at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)

	at org.python.core.PyObject.__findattr__(PyObject.java:863)

	at org.python.core.packagecache.PackageManager.lookupName(PackageManager.java:136)

	at org.python.core.PyModule.impAttr(PyModule.java:106)

	at org.python.core.imp.import_next(imp.java:720)

	at org.python.core.imp.import_module_level(imp.java:827)

	at org.python.core.imp.importName(imp.java:917)

	at org.python.core.ImportFunction.__call__(__builtin__.java:1220)

	at org.python.core.PyObject.__call__(PyObject.java:357)

	at org.python.core.__builtin__.__import__(__builtin__.java:1173)

	at org.python.core.imp.importFromAs(imp.java:1011)

	at org.python.core.imp.importFrom(imp.java:987)

	at sikuli$py.f$0(D:\july 17\Jars\sikuli-setup.jar\Lib\sikuli\__init__.py:7)

	at sikuli$py.call_function(D:\july 17\Jars\sikuli-setup.jar\Lib\sikuli\__init__.py)

	at org.python.core.PyTableCode.call(PyTableCode.java:165)

	at org.python.core.PyCode.call(PyCode.java:18)

	at org.python.core.imp.createFromCode(imp.java:391)

	at org.python.core.util.importer.importer_load_module(importer.java:109)

	at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)

	at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)

	at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)

	at org.python.core.imp.loadFromLoader(imp.java:518)

	at org.python.core.imp.find_module(imp.java:472)

	at org.python.core.imp.import_next(imp.java:718)

	at org.python.core.imp.import_module_level(imp.java:827)

	at org.python.core.imp.importName(imp.java:917)

	at org.python.core.ImportFunction.__call__(__builtin__.java:1220)

	at org.python.core.PyObject.__call__(PyObject.java:357)

	at org.python.core.__builtin__.__import__(__builtin__.java:1173)

	at org.python.core.imp.importAll(imp.java:1037)

	at org.python.pycode._pyx3.f$0(<string>:1)

	at org.python.pycode._pyx3.call_function(<string>)

	at org.python.core.PyTableCode.call(PyTableCode.java:165)

	at org.python.core.PyCode.call(PyCode.java:18)

	at org.python.core.Py.runCode(Py.java:1275)

	at org.python.core.Py.exec(Py.java:1319)

	at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)

	at org.sikuli.scriptrunner.JythonScriptRunner.executeScriptHeader(JythonScriptRunner.java:589)

	at org.sikuli.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:152)

	at runsikuli.main(runsikuli.java:38)


java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: sikuli (wrong name: Sikuli)


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.