← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #142037]: Running Java App+Sikuli out of a jar

 

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

Dantel D posted a new comment:
I checked severel things but still cant make it work. :/
I started it out of the win shell and can see the error message now. Here it is(comes up when I start the "sikuli part"of the program):

""
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: edu/mit/c
sail/uid/FindFailed
        at test.GUI.fensterEnlarge(GUI.java:2197)
        at test.GUI.ermittleUndZeigeFenster(GUI.java:2342)
        at test.GUI$IListener.actionPerformed(GUI.java:2595)
        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 Sour
ce)
        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.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)
Caused by: java.lang.ClassNotFoundException: edu.mit.csail.uid.FindFailed
        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)
        ... 28 more
""

Started it like "java -jar myfile.jar" and like you suggested it "java
-cp sikuli-script.jar -jar myfile.jar", same result.


It looks like everything is set correctly in the classpath:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry path="src" kind="src"/>
	<classpathentry path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true" kind="con"/>
	<classpathentry path="H:/public/Sikuli-IDE/sikuli-script.jar" exported="true" kind="lib">
		<attributes>
			<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="H:/public/Sikuli-IDE/tmplib"/>
		</attributes>
	</classpathentry>
	<classpathentry path="bin" kind="output"/>
</classpath>

The directories are there/"real". Kinda frustrating. Any ideas?

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