Home arrow static arrow Java Programming [Archive] - unable to search within .java files on windows xp
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - unable to search within .java files on windows xp
This topic has 14 replies on 1 page.

Posts:11
Registered: 2/5/04
unable to search within .java files on windows xp  
May 12, 2004 12:45 PM



 
windows Search can't seem to find things in my .java files (like grep) on my Windows XP machine.

Here's what I do: In the windows explorer, I select a folder which has some .java files beneath it, and I select Search off the folder's popup menu. That brings up a dialog that lets me name to file to search for, and also a word or phrase in the file. I enter filename of "*.java" and it finds all the *.java files OK, but if I also enter a value in the "word or phrase in the file" field and do a search, then it always says "0 files found" (I enter a word that I know is in some of the java files). Search finds words OK in .html or .txt files, but not in .java files. Weird.

Is there some setting in the windows registry that affects how searches are done in .java files?
 

Posts:1,872
Registered: 2/12/03
Re: unable to search within .java files on windows xp  
May 12, 2004 1:13 PM (reply 1 of 14)



 
When you enter the "word" in the Containing Text TextBox...DO NOt use double quote to surround the text

Window search is different then regex.
It will search for exact match
example
the quick brown down
search for "ick" will result a match
 

Posts:19,725
Registered: 9/26/01
Re: unable to search within .java files on windows xp  
May 12, 2004 1:13 PM (reply 2 of 14)



 
Follow the instructions in this article. I've run into the same thing, and the solution works.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q309173
 

Posts:19,725
Registered: 9/26/01
Re: unable to search within .java files on windows xp  
May 12, 2004 1:15 PM (reply 3 of 14)



 
Clarification: It was "Method 2" that I followed.
 

Posts:19,725
Registered: 9/26/01
Re: unable to search within .java files on windows xp  
May 12, 2004 2:17 PM (reply 4 of 14)



 
Normally by this time, a polite person who posed a question would at least offer some feedback, like "hey, thanks I'll look into that" or something. I'm so tired of you people!
 

Posts:2,206
Registered: 8/15/02
Re: unable to search within .java files on windows xp  
May 12, 2004 2:19 PM (reply 5 of 14)



 
Thanks warnerja.

Hope that makes your day!

(no offense cobber)
 

Posts:31,095
Registered: 4/30/99
Re: unable to search within .java files on windows xp  
May 12, 2004 2:46 PM (reply 6 of 14)



 
Follow the instructions in this article. I've run into
the same thing, and the solution works.
http://support.microsoft.com/default.aspx?scid=kb;EN-US
Q309173

Thank you. It now works for me too.

PC²
 

Posts:19,725
Registered: 9/26/01
Re: unable to search within .java files on windows xp  
May 12, 2004 2:54 PM (reply 7 of 14)



 
Follow the instructions in this article. I've run
into
the same thing, and the solution works.
http://support.microsoft.com/default.aspx?scid=kb;EN-US
Q309173

Thank you. It now works for me too.

PC�

Great! Glad at least someone (ok, 2) stopped by to say thanks. OP, hello? Geez, you even put up the 10 dukies as if this is important to you.
 

Posts:31,095
Registered: 4/30/99
Re: unable to search within .java files on windows xp  
May 12, 2004 3:09 PM (reply 8 of 14)



 
Great! Glad at least someone (ok, 2) stopped by
to say thanks. OP, hello? Geez, you even put up the 10
dukies as if this is important to you.

It wasn't that important to me, just annoying (I had other less convenient ways of doing it). I'd give you a couple of Dukes if I could though.
 

Posts:11
Registered: 2/5/04
Re: unable to search within .java files on windows xp  
May 12, 2004 3:32 PM (reply 9 of 14)



 
Awsome! This was it. This fixed my problem. Thanks a lot for the link, I would have never figured this out. How bizarre to not search all the files, because it might be too slow! What a brain-dead change to make between win2k and xp. Sorry I didn't reply sooner, but I was wasting my time digging around in the registry looking for an explanation there. Thanks again.
 

Posts:19,725
Registered: 9/26/01
Re: unable to search within .java files on windows xp  
May 12, 2004 5:29 PM (reply 10 of 14)



 
Glad you came back and replied. And you're welcome.
 

Posts:9,091
Registered: 8/15/01
Re: unable to search within .java files on windows xp  
May 12, 2004 5:32 PM (reply 11 of 14)



 
windows Search can't seem to find things in my .java
files (like grep) on my Windows XP machine.

Install Cygwin (and use Grep) :D
 

Posts:276
Registered: 9/23/98
Re: unable to search within .java files on windows xp  
Jul 27, 2004 1:00 PM (reply 12 of 14)



 
Wow I did this a few months ago and could have sworn it was working... Now it can't seem to find anything in .jsp files. Does anyone know how I can uninstall the search 'feature' from XP altogether so I'm not tempted to use it?
 

Posts:1,657
Registered: 1/8/98
Re: unable to search within .java files on windows xp  
Jul 27, 2004 8:40 PM (reply 13 of 14)



 
www.redhat.com, for one... ;D
 

Posts:319
Registered: 11/8/00
Re: unable to search within .java files on windows xp  
Jul 28, 2004 12:43 AM (reply 14 of 14)



 
windows Search can't seem to find things in my .java
files (like grep) on my Windows XP machine.

Install Cygwin (and use Grep) :D

Windows Grep is another option - http://www.wingrep.com/
 
This topic has 14 replies on 1 page.