You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by daniel <da...@msn.com> on 2011/05/02 14:13:43 UTC
IndexFiles cmd runs, even when IndexFiles.java is deleted
I'm new to Lucene and Java,
I'm trying to modify the source code for the indexing function in
Lucene-3.0.3; however, when I modified IndexFiles.java nothing happened, it
simply indexed the files the same way as before. So I deleted that file
entirely, and entered "java org.apache.lucene.demo.IndexFiles (+ file to be
index)" in the cmd line again, and IT STILL RAN!
What is going on here? How can the program run when the file is removed?
--
View this message in context: http://lucene.472066.n3.nabble.com/IndexFiles-cmd-runs-even-when-IndexFiles-java-is-deleted-tp2889622p2889622.html
Sent from the Lucene - General mailing list archive at Nabble.com.
RE: IndexFiles cmd runs, even when IndexFiles.java is deleted
Posted by daniel <da...@msn.com>.
Yeah, that'd be great except I have a project due in two weeks. All I want to be able to do is modify the code so that it will index files a bit differently then it does in the demo.
oh well.
Date: Mon, 2 May 2011 21:33:45 -0700
From: ml-node+2892747-401237171-396258@n3.nabble.com
To: daniel_pfister@msn.com
Subject: Re: IndexFiles cmd runs, even when IndexFiles.java is deleted
I suggest you work through the "New to Java" tutorials available on
the Java website, which will help you understand classpaths (how it
finds the code, where it looks) and the tools for development
(compilers, jars and jar tools, etc).
http://www.oracle.com/technetwork/topics/newtojava/gettingstarted-jsp-138588.html
On Mon, May 2, 2011 at 11:12 PM, daniel <[hidden email]> wrote:
>
> Yes, that makes sense, but I can't find any .class files. Nothing came up in a search either.
>
> It must be that the .jar files contain all the .class files. Now how can I unzip them?
If you reply to this email, your message will be added to the discussion below:
http://lucene.472066.n3.nabble.com/IndexFiles-cmd-runs-even-when-IndexFiles-java-is-deleted-tp2889622p2892747.html
To unsubscribe from IndexFiles cmd runs, even when IndexFiles.java is deleted, click here.
--
View this message in context: http://lucene.472066.n3.nabble.com/IndexFiles-cmd-runs-even-when-IndexFiles-java-is-deleted-tp2889622p2892837.html
Sent from the Lucene - General mailing list archive at Nabble.com.
Re: IndexFiles cmd runs, even when IndexFiles.java is deleted
Posted by Jenny Brown <sk...@gmail.com>.
I suggest you work through the "New to Java" tutorials available on
the Java website, which will help you understand classpaths (how it
finds the code, where it looks) and the tools for development
(compilers, jars and jar tools, etc).
http://www.oracle.com/technetwork/topics/newtojava/gettingstarted-jsp-138588.html
On Mon, May 2, 2011 at 11:12 PM, daniel <da...@msn.com> wrote:
>
> Yes, that makes sense, but I can't find any .class files. Nothing came up in a search either.
>
> It must be that the .jar files contain all the .class files. Now how can I unzip them?
RE: IndexFiles cmd runs, even when IndexFiles.java is deleted
Posted by daniel <da...@msn.com>.
Yes, that makes sense, but I can't find any .class files. Nothing came up in a search either.
It must be that the .jar files contain all the .class files. Now how can I unzip them?
Daniel
Date: Mon, 2 May 2011 12:16:10 -0700
From: ml-node+2891030-501748179-396258@n3.nabble.com
To: daniel_pfister@msn.com
Subject: Re: IndexFiles cmd runs, even when IndexFiles.java is deleted
Likely the .class file is still present? Javac compiles .java files
into .class files, and then java executes from .class files.
Mike
http://blog.mikemccandless.com
On Mon, May 2, 2011 at 8:13 AM, daniel <[hidden email]> wrote:
>
> I'm new to Lucene and Java,
>
> I'm trying to modify the source code for the indexing function in
> Lucene-3.0.3; however, when I modified IndexFiles.java nothing happened, it
> simply indexed the files the same way as before. So I deleted that file
> entirely, and entered "java org.apache.lucene.demo.IndexFiles (+ file to be
> index)" in the cmd line again, and IT STILL RAN!
>
> What is going on here? How can the program run when the file is removed?
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/IndexFiles-cmd-runs-even-when-IndexFiles-java-is-deleted-tp2889622p2889622.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>
If you reply to this email, your message will be added to the discussion below:
http://lucene.472066.n3.nabble.com/IndexFiles-cmd-runs-even-when-IndexFiles-java-is-deleted-tp2889622p2891030.html
To unsubscribe from IndexFiles cmd runs, even when IndexFiles.java is deleted, click here.
--
View this message in context: http://lucene.472066.n3.nabble.com/IndexFiles-cmd-runs-even-when-IndexFiles-java-is-deleted-tp2889622p2892673.html
Sent from the Lucene - General mailing list archive at Nabble.com.
Re: IndexFiles cmd runs, even when IndexFiles.java is deleted
Posted by Michael McCandless <lu...@mikemccandless.com>.
Likely the .class file is still present? Javac compiles .java files
into .class files, and then java executes from .class files.
Mike
http://blog.mikemccandless.com
On Mon, May 2, 2011 at 8:13 AM, daniel <da...@msn.com> wrote:
>
> I'm new to Lucene and Java,
>
> I'm trying to modify the source code for the indexing function in
> Lucene-3.0.3; however, when I modified IndexFiles.java nothing happened, it
> simply indexed the files the same way as before. So I deleted that file
> entirely, and entered "java org.apache.lucene.demo.IndexFiles (+ file to be
> index)" in the cmd line again, and IT STILL RAN!
>
> What is going on here? How can the program run when the file is removed?
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/IndexFiles-cmd-runs-even-when-IndexFiles-java-is-deleted-tp2889622p2889622.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>