Oracle Java 7 and sikuli on Quantal

Asked by fossin

Hi,
  I used the sikuli-jar.zip on the site in hopes that sikuli will work on Quantal, however I am having no such luck.
Here is the error I get.
Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream
        at org.python.core.Py.compile_flags(Py.java:1737)
        at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)
        at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:64)
        at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:104)
        at org.sikuli.script.SikuliScript.main(SikuliScript.java:115)
Caused by: java.lang.ClassNotFoundException: org.antlr.runtime.CharStream
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        ... 5 more

Anybody seen this before? Any solutions?

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

--- Java 7 ...
is not supported yet. you need an actual JRE 6 to be used with Sikuli.

The error itself (if still there with JRE 6) might be caused by problematic sequences in classpath.

Could you give more information on how you use and run Sikuli.

Revision history for this message
Edmundo VN (edmundo-vn) said :
#2

Im using it with Java 7 in Oneiric without problems.

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

@ Edmundo
That is interesting.
Are you using the Sikuli IDE and the interactive capture feature?

Revision history for this message
Edmundo VN (edmundo-vn) said :
#4

Yes

Revision history for this message
fossin (krishnaact) said :
#5

Edmundo,
   Please let me know you configuration. Did you use the binaries from
https://answers.launchpad.net/sikuli/+faq/1958

I also assume you mean official oracle java 7 and not openjdk 7

Regards

Revision history for this message
Edmundo VN (edmundo-vn) said :
#6

I installed Oracle Java 7 as shown here:
http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

Used sikuli from here:
http://launchpad.net/sikuli/sikuli-x/x1.0-rc3/+download/Sikuli-X-1.0rc3%20(r905)-linux-i686.zip
And I run it using sikuli-ide.sh

And installed a package related to opencv 2.1.

Can you help with this problem?

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

To post a message you must log in.