views:

913

answers:

3

Is there a way or tool for Vista I can use to search for content in Java files? (I do not have an Eclipse project set up for it)

I used to be able to do it easily in the windows search tool when I had Windows 2000.

Edit: I have already enabled "search file contents" and added additional file types as recommended by xsl and Grant Wagner, the search still returns no results...

A: 

There are tons of search tools. Simplest and smallest is the GNU grep.

I personnally use Far (for many things, not just search).

Vladimir Dyuzhev
Why on earth would you recommend a bunch of third party tools for something that is built into the OS?
Geoffrey Chetwood
atleast grep worked....
Kristian
@Kristian: Did you happen to turn off the indexing service or something? This should work fine right from the standard windows search.
Geoffrey Chetwood
I hade already enabled "search file contents" and added additional file types as recommended by xsl and Grant Wagner, the search still for some reason returns no results...
Kristian
Besides, the built-in search is painfully slow on my Vista.
Vladimir Dyuzhev
A: 

How to add additional file types to Vista's indexing is explained at Watching The Net and the How-To Geek.

Grant Wagner
It was already set for Java files, but did still not return any result...
Kristian
+1  A: 

Personally, I just use BareGrep (and previously, Agent Ransack), which is fast, supports regexes and show lines that match.
grepWin is nice too (can replace strings) but doesn't show lines.

PhiLho