Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

error with checkout the Basic Demo of Lucene

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


maurice.fard at gmail

Feb 11, 2009, 6:23 PM

Post #1 of 5 (1665 views)
Permalink
error with checkout the Basic Demo of Lucene

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.


gsingers at apache

Feb 12, 2009, 4:37 AM

Post #2 of 5 (1601 views)
Permalink
Re: error with checkout the Basic Demo of Lucene [In reply to]

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.
>


maurice.fard at gmail

Feb 12, 2009, 7:41 AM

Post #3 of 5 (1580 views)
Permalink
Re: error with checkout the Basic Demo of Lucene [In reply to]

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.


hossman_lucene at fucit

Feb 12, 2009, 4:37 PM

Post #4 of 5 (1600 views)
Permalink
Re: error with checkout the Basic Demo of Lucene [In reply to]

: 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
...
: Could not find the main class: IndexFiles.class. Program will exit.

1) please cut and paste exactly what you ran on your command line, and the
output you got back ... i suspect you aren't running exactly what you
think you are ... in all the JVMs i've seen that error (as you have
listed) should only happen if you tried to execute something like this...

chrish [at] asimo:~/lucene/java$ java IndexFiles.class src/
Exception in thread "main" java.lang.NoClassDefFoundError: IndexFiles/class

if you ran the command you have indicated, you should have (at worst)
gotten something like this...

chrish [at] asimo:~/lucene/java$ java org.apache.lucene.demo.IndexFiles src/
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/demo/IndexFiles

(note the full package path and the absense of "class")

2) since you are asking questions about using the Lucene java APIs, please
post any followup questions to the java-user [at] lucen mailing list ... there
are going to be a lot more people subscribed there that can help you.
(general [at] lucen is a good starting place when you have no idea what lucene
subproject might be off use to you, or when you wouldlike to discuss
issues that span multiple subprojects)


-Hoss


gsingers at apache

Feb 14, 2009, 5:55 AM

Post #5 of 5 (1558 views)
Permalink
Re: error with checkout the Basic Demo of Lucene [In reply to]

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.
>

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.