ranjith063 / sikuli-api

Automatically exported from code.google.com/p/sikuli-api
0 stars 0 forks source link

Java Exception for App myApp = new App(); WinUtil.dll not a valid win32 #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I am trying to open an Application over the Sikuli API with the following Code:

import org.sikuli.script.*;

public void blabla() throws FindFailed{
  App notepad = new App("Notepad");
  notepad.open("notepad.exe");

}

What is the expected output? What do you see instead?
Notepad should be opened.

What version of the product are you using? On what operating system?
Sikuli-API-1.0.0-Win64 on Win 7 64 Bit Prof.

I am using the IntelliJ Idea 12 as my IDE. My Problem is, every time i try to 
access the WinUtil.dll inside /libs, i get an Java Exception:

java.lang.UnsatisfiedLinkError: 
C:\Users\oezmen\Downloads\Sikuli-API-1.0.0-Win64\libs\WinUtil.dll: %1 is not a 
valid Win32-Application

And these are my System Environmental Variables:

PATH = C:\Program Files (x86)\Mozilla Firefox;c:\Program Files (x86)\AMD 
APP\bin\x86_64;c:\Program Files (x86)\AMD 
APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\S
ystem32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program 
Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL 
SDK\2.0\bin\x64;C:\Python27;C:\Users\oezmen\Downloads\Sikuli-API-1.0.0-Win64\lib
s;C:\maven\bin;C:\Program 
Files\TortoiseGit\bin;C:\Users\oezmen\Downloads\Sikuli-API-1.0.0-Win64;C:\Users\
oezmen\Downloads\Sikuli-API-1.0.0-Win64\libs

SIKULI_HOME = C:\Users\oezmen\Downloads\Sikuli-API-1.0.0-Win64

Using Windows 7 64 Bit, java version "1.7.0_21" 64 Bit

Original issue reported on code.google.com by killumin...@googlemail.com on 24 Jun 2013 at 12:10

Attachments:

GoogleCodeExporter commented 8 years ago
Now the Exception changed for some reason: 
java.lang.UnsatisfiedLinkError: 
C:\Users\oezmen\Downloads\SikuliX-API-1.0-Win64Beta999\libs\WinUtil.dll: Can't 
find dependent libraries

Original comment by killumin...@googlemail.com on 24 Jun 2013 at 1:52

GoogleCodeExporter commented 8 years ago
I'm bummed I can't get IntelliJ to run my Sikuli stuff either, but here's my 
workaround til someone chances upon a resolution: 
Use the IntelliJ maven runner to exec the class or test. In my case, I add a 
lifecycle execution run profile with -Dtests="MyCoolTest". You can do the same 
for a main class using mvn java:exec. 

See: http://stackoverflow.com/questions/9846046/run-main-class-of-maven-project

I'm using Sikuli 1.0.1, IntelliJ 13. x64 JVM 1.7.0_45-b18
I hope this helps in the interim!

Original comment by ultim...@gmail.com on 14 Jan 2014 at 9:47