← Back to team overview

sikuli-driver team mailing list archive

[Question #207017]: Running Sikuli script on Win 2008 server R2 with java 6(32bit)

 

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

I have installed sikuli on Win 2008 server R2 and configured JAVA 6 (32 bit) on the same OS.

While trying to run my script from Eclipse IDE, i am facing the following error :

org.testng.TestNGException: 
Cannot instantiate class SampleSikuli
	at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:38)
	at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:387)
	at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:299)
	at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:111)
	at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:196)
	at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:120)
	at org.testng.TestRunner.initMethods(TestRunner.java:409)
	at org.testng.TestRunner.init(TestRunner.java:235)
	at org.testng.TestRunner.init(TestRunner.java:205)
	at org.testng.TestRunner.<init>(TestRunner.java:160)
	at org.testng.remote.RemoteTestNG$1.newTestRunner(RemoteTestNG.java:141)
	at org.testng.remote.RemoteTestNG$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG.java:271)
	at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:561)
	at org.testng.SuiteRunner.init(SuiteRunner.java:157)
	at org.testng.SuiteRunner.<init>(SuiteRunner.java:111)
	at org.testng.TestNG.createSuiteRunner(TestNG.java:1272)
	at org.testng.TestNG.createSuiteRunners(TestNG.java:1259)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1113)
	at org.testng.TestNG.run(TestNG.java:1030)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29)
	... 21 more
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\MWaseem\AppData\Local\Temp\6\tmplib\Win32Util.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.load0(Unknown Source)
	at java.lang.System.load(Unknown Source)
	at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
	at org.sikuli.script.Win32Util.<clinit>(Win32Util.java:19)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.sikuli.script.Env.getOSUtil(Env.java:91)
	at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:180)
	at org.sikuli.script.ScreenHighlighter.<init>(ScreenHighlighter.java:293)
	at org.sikuli.script.Screen.initBounds(Screen.java:105)
	at org.sikuli.script.Screen.<init>(Screen.java:117)
	at SampleSikuli.<init>(SampleSikuli.java:18)
	... 26 more


Is there a way to fix this issue?

Please help ...

Thanks in advance!



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