Sikuli X1.0rc2 terminates on taking screenshot(zipped version)

Asked by swethaa

Hi all,
       I have a zipped version of Sikuli X-1.0rc2 .Whenever I try to use the App to take screenshots it terminates.Could me help me find the crux of problem??

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

--1: might already be the case - only to be sure:
path-to-your-Sikuli\lib
and
path-to-Java-JRE\jre6\bin

have to be in system path

--2: use this to start the IDE:
java -Dsikuli.console=false -jar "path-to-your-Sikuli\sikuli-ide.jar"

on a command line. You will find more information there after the termination.

Revision history for this message
swethaa (shwethaa-1988) said :
#2

Termination of the IDE also happens in case of Sikuli X1.0 rc2 installer version..Pls help me fix.I did try fixing the system path as well

Revision history for this message
RaiMan (raimund-hocke) said :
#3

--1. it might be necessary to restart the system after having fixed the system path in system preferences -> extended -> environment variables.

--2. run echo %PATH% on commandline and paste the output.

--3. did you make the above test --2 ?

Revision history for this message
swethaa (shwethaa-1988) said :
#4

Hi RaiMan
 I have pasted the exception i found in using Screen shot functionality and also my path output.

C:\Users\268263>java -Dsikuli.console=false -jar "C:\Program Files\Sikuli X\siku
li-ide.jar"
[info] locale: en_US
[debug] init user preferences
[info] install hotkey: CTRL+SHIFT+2 for onQuickCapture
[info] install hotkey: ALT+SHIFT+C for onStopRunning
[info] Windows utilities loaded.
Exception in thread "capture" java.lang.NoClassDefFoundError: com/sun/awt/AWTUti
lities
        at org.sikuli.script.Win32Util.setWindowOpaque(Win32Util.java:79)
        at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:175)
        at org.sikuli.script.ScreenHighlighter.<init>(ScreenHighlighter.java:288
)
        at org.sikuli.script.Screen.initBounds(Screen.java:96)
        at org.sikuli.script.Screen.<init>(Screen.java:108)
        at org.sikuli.script.CapturePrompt.<init>(CapturePrompt.java:319)
        at org.sikuli.script.CapturePrompt.<init>(CapturePrompt.java:310)
        at org.sikuli.ide.CaptureButton$1.run(CaptureButton.java:186)
Caused by: java.lang.ClassNotFoundException: com.sun.awt.AWTUtilities
        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)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        ... 8 more

C:\Users\268263>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32
\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C
:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQ
L Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual S
tudio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\Sikuli X\libs;C:\Progr
am Files\Java\jre1.6.0_06\bin;C:\Program Files\Java\jdk1.6.0_06\bin;C:\Program F
iles\Sikuli X\libs;C:\Program Files\Java\jre1.6.0_06\\bin

Revision history for this message
RaiMan (raimund-hocke) said :
#5

Uuups, you are running Java build 6.

You need at least build 16. Current build is 24 (recommended ;-)

And you should sanitize your PATH: double entries (no problem now, but might become one with future versions).
The path entry to the JDK is not needed for Sikuli.

Can you help with this problem?

Provide an answer of your own, or ask swethaa for more information if necessary.

To post a message you must log in.