You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kay Kay <ka...@gmail.com> on 2008/12/17 18:03:25 UTC
Nightly build - 2008-12-17.tgz - build error - java.lang.NoClassDefFoundError:
org/mozilla/javascript/tools/shell/Main
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 .
Re: Nightly build - 2008-12-17.tgz - build error - java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Wed, Dec 17, 2008 at 10:53 PM, Matthew Runo <mr...@zappos.com> wrote:
> I'm using Java 6 and it's compiling for me.
>
I believe rhino is included by default in Java 6
--
Regards,
Shalin Shekhar Mangar.
Re: Nightly build - 2008-12-17.tgz - build error - java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main
Posted by Matthew Runo <mr...@zappos.com>.
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
mruno@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.cole@semantico.com
> W: www.semantico.com
>
Re: Nightly build - 2008-12-17.tgz - build error - java.lang.NoClassDefFoundError:
org/mozilla/javascript/tools/shell/Main
Posted by Kay Kay <ka...@gmail.com>.
Thanks Toby.
Aliter:
Under contrib/javascript/build.xml -> dist target - I removed the
dependency on 'docs' , to circumvent the problem.
But may be - it would be great to get js.jar from the rhino library
distributed ( if not for license contradictions) to circumvent this.
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.cole@semantico.com
> W: www.semantico.com
>
>
Re: Nightly build - 2008-12-17.tgz - build error - java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main
Posted by Toby Cole <to...@semantico.com>.
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.cole@semantico.com
W: www.semantico.com