lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: error with checkout the Basic Demo of Lucene
Date Sat, 14 Feb 2009 13:55:23 GMT
Are you following: http://lucene.apache.org/java/2_4_0/demo.html

Did you setup your classpath?


On Feb 12, 2009, at 10:41 AM, Fard wrote:

>
> Thank you for your response,
>
> Again I check out the Basic demo and run "ant war-demo" from prompt  
> line. I
> searched for indexfiles.class to run it and create index directory.  
> it is in
> "build.classes.demo.org.apache.lucene.demo".
> I run "java org.apache.lucene.demo.IndexFiles {full-path-to-lucene}/ 
> src" and
> I got the below error.
>
>
> Exception in thread "main" java.lang.NoClassDefFoundError:  
> IndexFiles/class
> Caused by: java.lang.ClassNotFoundException: IndexFiles.class
>        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)
> Could not find the main class: IndexFiles.class.  Program will exit.
>
> Grant Ingersoll-6 wrote:
>>
>>
>> I hope this information will be helpful.
>>
>> Have fun
>> Maurice
>>
>> I don't know about Eclipse, but what happens if you just go into the
>> checkout directory on the command line and do "ant compile"
>>
>>
>> On Feb 11, 2009, at 9:23 PM, Fard wrote:
>>
>>>
>>> Hello there,
>>>
>>> I checked out the Basic Demo from subversion
>>>         http://svn.apache.org/repos/asf/lucene/java/trunk
>>> lucene/java/trunk
>>> in eclipse. And in the package explorer I got a lot of errors. The
>>> most are
>>> not compatibility between the name of packages and the package that
>>> classes
>>> should be there. For example there is a package called
>>> "java.org.apache.lucene.analysis" with almost 30 java class in it
>>> but the
>>> first statment in all these classes
>>> are "package org.apache.lucene.analysis;". I have this problem with
>>> all of
>>> packages and all them included files. I don't know is it something
>>> wrong in
>>> the check out process I have done or something wrong in the Basic
>>> Demo of
>>> Lucene. I appreciated let me know how can I fix it.
>>>
>>> Have Fun
>>> Maurice
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/error-with-checkout-the-Basic-Demo-of-Lucene-tp21968770p21968770.html
>>> Sent from the Lucene - General mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/error-with-checkout-the-Basic-Demo-of-Lucene-tp21968770p21978543.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>


Mime
View raw message