← Back to team overview

sikuli-driver team mailing list archive

[Question #268849]: Load sikuli-script.jar failed with cpython

 

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

Hi, i've met a problem of use sikuli 1.0 with pyjnius or jpype on cpython(Activepython 32bit).

I copied testng.jar and sikuli-script.jar on my desktop, and i load the testng.jar successfully,but it always return class cannot found with sikuli-script.jar.And i download an project on github with sikuli-api-1.0.2-standalone.jar, and i can use the find/type function as normal, so i think there's must be some error in sikuli-sciprt.jar, am i right?

C:\Users\huangc11>python
ActivePython 2.7.8.10 (ActiveState Software Inc.) based on
Python 2.7.8 (default, Jul  2 2014, 19:50:44) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ['CLASSPATH']+='C:\\Users\\huangc11\\Desktop\\sikuli-script.jar;'
>>> os.environ['CLASSPATH']+='C:\\Users\\huangc11\\Desktop\\testng-6.8.21.jar;'
>>> from jnius import autoclass
>>> a=autoclass('org.testng.Assert')
>>> b=autoclass('org.sikuli.script.App')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\jnius\reflect.py", line 150, in autoclass
    c = find_javaclass(clsname)
  File "jnius_export_func.pxi", line 23, in jnius.find_javaclass (jnius\jnius.c:12117)
jnius.JavaException: Class not found 'org/sikuli/script/App'
>>>


2.unzip the sikuli-api-1.0.2-standalone.jar
C:\Users\huangc11\Desktop\temp\sikuli>dir
 Volume in drive C is OSDisk
 Volume Serial Number is 6067-65AA

 Directory of C:\Users\huangc11\Desktop\temp\sikuli

07/04/2015  10:47 PM    <DIR>          .
07/04/2015  10:47 PM    <DIR>          ..
07/04/2015  10:47 PM    <DIR>          codecLib
07/04/2015  10:47 PM    <DIR>          com
07/04/2015  10:47 PM    <DIR>          edu
05/01/2003  01:53 PM             1,940 Export.class
04/19/2003  02:33 PM             8,364 hm20action.class
04/19/2003  02:33 PM            12,455 hm20animator.class
04/19/2003  02:33 PM             1,120 hm20decimg.class
04/19/2003  02:33 PM             2,901 hm20gsm.class
04/19/2003  02:33 PM             8,673 hm20gsmtask.class
04/19/2003  02:33 PM             6,295 hm20gui.class
04/19/2003  02:33 PM             2,652 hm20ipix.class
04/19/2003  02:33 PM            24,253 hm20ipixa.class
04/19/2003  02:33 PM            10,246 hm20ipixb.class
04/19/2003  02:33 PM             1,807 hm20ipixc.class
04/19/2003  02:33 PM            10,043 hm20ipixd.class
04/19/2003  02:33 PM             4,292 hm20master.class
04/19/2003  02:33 PM            10,860 hm20masterorig.class
04/19/2003  02:33 PM            16,577 hm20pan.class
04/19/2003  02:33 PM             2,333 hm20player.class
04/19/2003  02:33 PM            16,610 hm20slide.class
05/01/2003  01:40 PM             4,477 ImageGen.class
05/01/2003  01:53 PM             2,533 JavaSoundAuto.class
05/01/2003  01:53 PM             1,528 JavaSoundDetector.class
07/04/2015  10:47 PM    <DIR>          javax
07/04/2015  10:47 PM    <DIR>          jmapps
05/01/2003  01:53 PM             6,359 JMFInit.class
05/01/2003  01:53 PM               646 JMFRegistry$1.class
05/01/2003  01:53 PM             2,033 JMFRegistry.class
05/01/2003  01:53 PM               918 JMStudio$1.class
05/01/2003  01:53 PM               606 JMStudio$2.class
05/01/2003  01:53 PM             1,522 JMStudio$EffectListener.class
05/01/2003  01:53 PM             2,553 JMStudio$RTPTimer.class
05/01/2003  01:53 PM             1,293 JMStudio$WaitOnVis.class
05/01/2003  01:53 PM            33,570 JMStudio.class
06/10/2009  08:43 PM             1,690 LICENSE.txt
07/04/2015  10:47 PM    <DIR>          META-INF
07/04/2015  10:47 PM    <DIR>          org
06/10/2009  08:43 PM             8,544 README.html
06/10/2009  08:43 PM            31,571 RELEASE-NOTES.txt
12/05/2013  12:54 PM        18,043,386 sikuli-api-1.0.2-standalone.jar
05/01/2003  01:53 PM             5,052 SimplePlayerApplet.class
              34 File(s)     18,289,702 bytes
               9 Dir(s)  61,159,170,048 bytes free


C:\Users\huangc11\Desktop\temp\sikuli\org\sikuli\api>dir
 Volume in drive C is OSDisk
 Volume Serial Number is 6067-65AA

 Directory of C:\Users\huangc11\Desktop\temp\sikuli\org\sikuli\api

07/04/2015  10:47 PM    <DIR>          .
07/04/2015  10:47 PM    <DIR>          ..
11/18/2012  04:30 PM             3,517 AbstractScreenRegion.class
11/18/2012  04:30 PM             1,080 API.class
11/18/2012  04:30 PM             2,664 APILogger.class
11/18/2012  04:30 PM             1,900 ColorImageTarget.class
11/18/2012  04:30 PM             3,546 DefaultLogger.class
11/18/2012  04:30 PM             1,932 DefaultScreenLocation.class
11/18/2012  04:30 PM             1,139 DefaultScreenRegion$1.class
11/18/2012  04:30 PM               973 DefaultScreenRegion$RepeatFind$1.class
11/18/2012  04:30 PM             1,512 DefaultScreenRegion$RepeatFind.class
11/18/2012  04:30 PM             1,694 DefaultScreenRegion$StaticScreen.class
11/18/2012  04:30 PM             9,293 DefaultScreenRegion.class
11/18/2012  04:30 PM             1,188 DefaultTarget$1.class
11/18/2012  04:30 PM             1,188 DefaultTarget$2.class
11/18/2012  04:30 PM             1,188 DefaultTarget$3.class
11/18/2012  04:30 PM             1,188 DefaultTarget$4.class
11/18/2012  04:30 PM             3,771 DefaultTarget.class
11/18/2012  04:30 PM               671 DesktopScreenRegion.class
07/04/2015  10:47 PM    <DIR>          event
11/18/2012  04:30 PM             1,865 FourCornerModel$1.class
11/18/2012  04:30 PM             2,421 FourCornerModel.class
07/04/2015  10:47 PM    <DIR>          gui
11/18/2012  04:30 PM             3,913 ImageTarget.class
11/18/2012  04:30 PM             2,064 JpegImagesToMovie$ImageDataSource.class
11/18/2012  04:30 PM             3,130 JpegImagesToMovie$ImageSourceStream.class
11/18/2012  04:30 PM             7,147 JpegImagesToMovie.class
11/18/2012  04:30 PM               925 ModelPart.class
11/18/2012  04:30 PM             1,215 MultiStateTarget$1.class
11/18/2012  04:30 PM             3,098 MultiStateTarget.class
11/18/2012  04:30 PM             1,245 Relative$RelativeScreenLocationBuilder.class
11/18/2012  04:30 PM             2,531 Relative$RelativeScreenRegionBuilder.class
11/18/2012  04:30 PM             1,003 Relative.class
07/04/2015  10:47 PM    <DIR>          robot
11/18/2012  04:30 PM               214 Screen.class
11/18/2012  04:30 PM               368 ScreenLocation.class
11/18/2012  04:30 PM             1,613 ScreenRegion.class
11/18/2012  04:30 PM             2,225 ScreenRegionImageLogger$1.class
11/18/2012  04:30 PM             2,877 ScreenRegionImageLogger$2.class
11/18/2012  04:30 PM             1,932 ScreenRegionImageLogger$LogImageRenderer.class
11/18/2012  04:30 PM             4,670 ScreenRegionImageLogger.class
11/18/2012  04:30 PM               779 ScreenRegionRecorder$1.class
11/18/2012  04:30 PM             2,697 ScreenRegionRecorder$2.class
11/18/2012  04:30 PM             1,920 ScreenRegionRecorder$CapturingThread.class
11/18/2012  04:30 PM             4,737 ScreenRegionRecorder.class
11/18/2012  04:30 PM               763 SikuliRuntimeException.class
11/18/2012  04:30 PM               536 StdoutLogger.class
11/18/2012  04:30 PM             1,772 StyledRectangleTarget.class
11/18/2012  04:30 PM             1,244 Target$Ordering.class
11/18/2012  04:30 PM               584 Target.class
11/18/2012  04:30 PM             1,576 TextImageGenerator.class
11/18/2012  04:30 PM             1,423 TextTarget$1.class
11/18/2012  04:30 PM             2,308 TextTarget$2.class
11/18/2012  04:30 PM             1,072 TextTarget$3.class
11/18/2012  04:30 PM             1,197 TextTarget$4.class
11/18/2012  04:30 PM               721 TextTarget$TextMatch.class
11/18/2012  04:30 PM               866 TextTarget$WeightedFontModel.class
11/18/2012  04:30 PM             9,257 TextTarget.class
07/04/2015  10:47 PM    <DIR>          visual
11/18/2012  04:30 PM               294 VisualModel.class
11/18/2012  04:30 PM             2,365 VisualModelFinder$1.class
11/18/2012  04:30 PM             2,737 VisualModelFinder$2.class
11/18/2012  04:30 PM             1,311 VisualModelFinder$3.class
11/18/2012  04:30 PM             3,335 VisualModelFinder$MatchHypotheseRenderer.class
11/18/2012  04:30 PM             3,322 VisualModelFinder$MatchHypothesis.class
11/18/2012  04:30 PM             1,055 VisualModelFinder$ModelPartMatch.class
11/18/2012  04:30 PM             6,597 VisualModelFinder.class
              61 File(s)        137,368 bytes
               6 Dir(s)  61,157,724,160 bytes free


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