[1.0] NoClassDefFoundError

Asked by rob

hello,
i tried installing sikuli 1.0 on a windows 7 64-bit machine with 32-bit java 6 installed. i added C:\Sikuli-IDE-1.0.0-Win32;C:\Sikuli-IDE-1.0.0-Win32\libs; as the environment variables and i got the following error:

PS C:\Users\****> sikuli-script -i
-Xms64M -Xmx512M -Dfile.encoding=UTF-8
-i
+++ using as SIKULIX_HOME: C:\Sikuli-IDE-1.0.0-Win32\
+++ this Sikuli version is 32-Bit
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
+++ trying to start Sikuli Script
Exception in thread "main" java.lang.NoClassDefFoundError: org/sikuli/script/SikuliScript
Caused by: java.lang.ClassNotFoundException: org.sikuli.script.SikuliScript
        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)
Could not find the main class: org.sikuli.script.SikuliScript . Program will exit.

any help would be appreciated.

Question information

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

pls. use the new version 1.0.1
start here and read carefully - things have changed fundamentally:
http://www.sikuli.org/download.html

Revision history for this message
rob (reg82) said :
#2

i downloaded the jar and put it in C:\sikuliX when i tried to run it i got a corrupt jar file error. i'm behind a firewall, and i have local admin rights to my computer but not to the network. i dont know if that makes a difference or not.

Revision history for this message
rob (reg82) said :
#3

i guess it must have something to do with the security settings in place at my office, because i got home and installed version 1.0.1 just fine.

Revision history for this message
Aravind (a4aravind) said :
#4

Well, you can go for an offline installation in this case.
Kindly refer https://answers.launchpad.net/sikuli/+faq/2363

Revision history for this message
rob (reg82) said :
#5

i tried doing an offline installation but when i ran Setup.jar i got a corrupt jar file error pop up message. i use the same os and have the same version of java installed at home so maybe i need admin rights to run the jar or something?

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

did you:
1. download sikuli-setup.jar
2. download and unzip an offline package according to faq 2363 and the read me
3.a doubleclick sikuli-setup.jar
3.b or used java -jar sikuli-setup.jar
4. answered the popups, so the offline package is used for setup
5. see setup starting to work

at what step did you get the error?

what exactly does the error say?

Revision history for this message
rob (reg82) said :
#7

so at the office, from my work desktop, i did steps 1 through 3a and 3b.
when i double clicked the sikuli-setup.jar i got a pop up message that said:
Error: Invalid or corrupt jarfile C:\sikuliX\sikuli-setup.jar

i tried it at home and it worked perfectly. so i put the sikuli-setup.jar and offline setup files (options 1,3,5) i downloaded at home onto a flash drive and tried the install again with the files on my flash drive and it worked.
so the problem must have been with the jar file i downloaded from my office computer.
thanks for your help guys.