I'm using Java 6 and it's compiling for me.
I'm doing..
ant clean
ant dist
and it works just fine. Maybe try an 'ant clean'?
Thanks for your time!
Matthew Runo
Software Engineer, Zappos.com
mr...@zappos.com - 702-943-7833
On Dec 17, 2008, at 9:17 AM, Toby Cole wrote:
I came across this too earlier, I just deleted the contrib/
javascript directory.
Of course, if you need javascript library then you'll have to get it
building.
Sorry, probably not that helpful. :)
Toby.
On 17 Dec 2008, at 17:03, Kay Kay wrote:
I downloaded the latest .tgz and ran
$ ant dist
docs:
[mkdir] Created dir: /opt/src/apache-solr-nightly/contrib/
javascript/dist/doc
[java] Exception in thread "main" java.lang.NoClassDefFoundError:
org/mozilla/javascript/tools/shell/Main
[java] at JsRun.main(Unknown Source)
[java] Caused by: java.lang.ClassNotFoundException:
org.mozilla.javascript.tools.shell.Main
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:
200)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher
$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[java] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[java] ... 1 more
BUILD FAILED
/opt/src/apache-solr-nightly/common-build.xml:335: The following
error occurred while executing this line:
/opt/src/apache-solr-nightly/common-build.xml:212: The following
error occurred while executing this line:
/opt/src/apache-solr-nightly/contrib/javascript/build.xml:74: Java
returned: 1
and came across the above mentioned error.
The class seems to be from the rhino (mozilla js ) library. Is it
supposed to be packaged by default / is there a license restriction
that prevents from being so .
Toby Cole
Software Engineer
Semantico
Lees House, Floor 1, 21-23 Dyke Road, Brighton BN1 3FE
T: +44 (0)1273 358 238
F: +44 (0)1273 723 232
E: toby.c...@semantico.com
W: www.semantico.com