← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #204177]: Sikuli-Script doesn't find the files in Netbeans

 

Question #204177 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204177

    Status: Answered => Open

Deses is still having a problem:
Thanks for those additional comments, I will look further into them
later, when I get to work the jars.

Well, I have new info, the path of the images was not the problem! Oh
man, that pissed me off. :(

I tried running the jar using the command line as you told me (I was
just opening the jar via Windows Explorer) and the execution throws me
an exception as soon as I click "Start" in my GUI.

I've been looking for an answer but I didn't find anything of use.

I have the System Variable (and User Variable, just in case) set to:
    SIKULI_HOME:
        C:\Program Files (x86)\Sikuli X\
    Path: (Along with many other system varialbes like nVidia and Android stuff.)
        C:\Program Files (x86)\Sikuli X\libs
        C:\Program Files (x86)\Java\jre6\bin

I am running Windows 7 x64 and my program is working perfectly under
Netbeans.

Before continuing to the exception, my goal is make an standalone
fatjar, so the user don't have to install Sikuli X or set system
variables. Is that even possible?

Here is the exception:

E:\Dropbox\Programas\BackyardMonstersAutomator\dist>java -jar BackyardMonstersAutomator.jar
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sikuli X\libs\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.loadLibrary1(Unknown Source)
        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 deses.bym.BYMAutomator.<clinit>(BYMAutomator.java:20)
        at deses.bym.BYMAutomatorUI$StartButtonListener.actionPerformed(BYMAutomatorUI.java:269)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Now, if I make a Fatjar using JarSplice (http://ninjacave.com/jarsplice)
I add the 3 jars (Sikuli-script.jar, riverlayout.jar, bymautomator.jar)
then the exception is different, but better to not go too fast.

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