如何使用Windows搜索搜索Jar文件?

时间:2023-01-15 00:21:17

I believe back when we were on Win2K, Windows Search would search through Jar files to locate specific classes but this doesn't appear to work in XP. Does anyone know how to enable this in XP?

我相信当我们使用Win2K时,Windows搜索会搜索Jar文件来查找特定的类,但这似乎不适用于XP。有谁知道如何在XP中启用它?

Note, to do the search in Win2K we just entered *.jar for the files and "ClassABC" for the search text string and the search would return any jar files containing class files where the title contained "ClassABC".

注意,要在Win2K中进行搜索,我们只为文件输入* .jar,为搜索文本字符串输入“ClassABC”,搜索将返回包含类文件的任何jar文件,其中标题包含“ClassABC”。

10 个解决方案

#1


Add this to a text file, save file, change the extension to .reg, double click to add to registry and you should be ok...you can search on file name or content and it should show jars that have class names

将其添加到文本文件,保存文件,将扩展名更改为.reg,双击以添加到注册表,您应该没问题...您可以搜索文件名或内容,它应该显示具有类名的jar

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.jar\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

The only thing left is to logout and log back into windows and it should work fine for you, see http://support.microsoft.com/kb/309173 for more details

唯一剩下的就是注销并重新登录到Windows,它应该可以正常工作,请参阅http://support.microsoft.com/kb/309173了解更多详情

#2


I would also recommend total commander. It is a great file management tool with great search functionality which can easily look inside jar files.

我也会推荐总指挥官。它是一个很棒的文件管理工具,具有很棒的搜索功能,可以轻松查看jar文件。

#3


If it was removed it was likely due to the Sun-Microsoft Java dispute that was going on around the time XP was developed. It's unlikely to have a way of re-enabling it.

如果删除它可能是由于在XP开发的时候发生的Sun-Microsoft Java争议。它不可能有一种重新启用它的方法。

You might find this helpful instead: http://jarbrowser.sourceforge.net/

你可能会觉得这很有用:http://jarbrowser.sourceforge.net/

#4


Just use FindClassInJars util, it's a simple swing program, but useful. You can check source code or download jar file at http://code.google.com/p/find-class-in-jars/

只需使用FindClassInJars util,它就是一个简单的swing程序,但很有用。您可以访问http://code.google.com/p/find-class-in-jars/查看源代码或下载jar文件

#5


According to this MSDN Channel 9 article, adding an appropriate IFilter will do it. Since .jar files are the same as .zip files, one of the four ZIP file IFilters they list might work (unless they are all extension-based).

根据MSDN Channel 9的这篇文章,添加一个合适的IFilter就可以了。由于.jar文件与.zip文件相同,因此它们列出的四个ZIP文件IFilter中的一个可能有效(除非它们都是基于扩展名的)。

#6


From Brenden Anstey's Blog:

来自Brenden Anstey的博客:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.jar]
"Content Type"="application/x-zip-compressed"
"PerceivedType"="compressed"
@="CompressedFolder"

[HKEY_CLASSES_ROOT\.jar\CompressedFolder]

[HKEY_CLASSES_ROOT\.jar\CompressedFolder\ShellNew]
"Data"=hex:50,4b,05,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CLASSES_ROOT\.jar\OpenWithProgids]
"CompressedFolder"=""

[HKEY_CLASSES_ROOT\.jar\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\.war]
"Content Type"="application/x-zip-compressed"
"PerceivedType"="compressed"
@="CompressedFolder"

[HKEY_CLASSES_ROOT\.war\CompressedFolder]

[HKEY_CLASSES_ROOT\.war\CompressedFolder\ShellNew]
"Data"=hex:50,4b,05,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CLASSES_ROOT\.war\OpenWithProgids]
"CompressedFolder"=""

[HKEY_CLASSES_ROOT\.war\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\.ear]
"Content Type"="application/x-zip-compressed"
"PerceivedType"="compressed"
@="CompressedFolder"

[HKEY_CLASSES_ROOT\.ear\CompressedFolder]

[HKEY_CLASSES_ROOT\.ear\CompressedFolder\ShellNew]
"Data"=hex:50,4b,05,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CLASSES_ROOT\.ear\OpenWithProgids]
"CompressedFolder"=""

[HKEY_CLASSES_ROOT\.ear\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

#7


I know that it's not Windows Search, but I have long used Agent Ransack for this: it is very quick and searches through all the various java archive formats (jar, war, ear) as well as zip.

我知道这不是Windows搜索,但我长期以来一直使用Agent Ransack:它非常快速并且搜索所有各种java存档格式(jar,war,ear)以及zip。

A feature that I particularly like and use a lot is saving a search: you can save the criteria (so that you can repeat that search easily) or the results.. So when I am working on a project, I will often want to search through the project directory tree for a file (or a file within a jar/zip). I perform the search once and save the criteria as a .srf file, which I can open quickly to perform similar searches afterwards.

我特别喜欢和使用的一个功能是保存搜索:您可以保存标准(以便您可以轻松地重复该搜索)或结果..因此,当我正在处理项目时,我经常要搜索通过项目目录树获取文件(或jar / zip中的文件)。我执行一次搜索并将条件保存为.srf文件,我可以快速打开以执行类似的搜索。

#8


I made another version of FindClassInJars here. It is the same look but searches a little better and smarter. Click the "Raw button here: https://github.com/Oxvalley/FindClassInJars/blob/master/lib/findclassinjars-2.0.0.jar

我在这里制作了另一个版本的FindClassInJars。外观相同,但搜索效果更好,更智能。单击“原始按钮:https://github.com/Oxvalley/FindClassInJars/blob/master/lib/findclassinjars-2.0.0.jar

#9


a while back I developed this: https://github.com/javalite/jar-explorer just for the occasion. works even on windows :)

不久前我开发了这个:https://github.com/javalite/jar-explorer只是为了这个场合。甚至在Windows上工作:)

#10


As suggested by @iubing, the FindClassInJars code works fairly well, but the author must have botched the packaging.

正如@iubing所建议的那样,FindClassInJars代码运行得相当好,但作者必须对包装进行破坏。

I've forked the FindClassInJars util from google code, you can get a built copy here that works. Just click the "raw" button.

我已经从谷歌代码分叉了FindClassInJars工具,你可以在这里获得一个有效的内置副本。只需单击“原始”按钮即可。

#1


Add this to a text file, save file, change the extension to .reg, double click to add to registry and you should be ok...you can search on file name or content and it should show jars that have class names

将其添加到文本文件,保存文件,将扩展名更改为.reg,双击以添加到注册表,您应该没问题...您可以搜索文件名或内容,它应该显示具有类名的jar

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.jar\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

The only thing left is to logout and log back into windows and it should work fine for you, see http://support.microsoft.com/kb/309173 for more details

唯一剩下的就是注销并重新登录到Windows,它应该可以正常工作,请参阅http://support.microsoft.com/kb/309173了解更多详情

#2


I would also recommend total commander. It is a great file management tool with great search functionality which can easily look inside jar files.

我也会推荐总指挥官。它是一个很棒的文件管理工具,具有很棒的搜索功能,可以轻松查看jar文件。

#3


If it was removed it was likely due to the Sun-Microsoft Java dispute that was going on around the time XP was developed. It's unlikely to have a way of re-enabling it.

如果删除它可能是由于在XP开发的时候发生的Sun-Microsoft Java争议。它不可能有一种重新启用它的方法。

You might find this helpful instead: http://jarbrowser.sourceforge.net/

你可能会觉得这很有用:http://jarbrowser.sourceforge.net/

#4


Just use FindClassInJars util, it's a simple swing program, but useful. You can check source code or download jar file at http://code.google.com/p/find-class-in-jars/

只需使用FindClassInJars util,它就是一个简单的swing程序,但很有用。您可以访问http://code.google.com/p/find-class-in-jars/查看源代码或下载jar文件

#5


According to this MSDN Channel 9 article, adding an appropriate IFilter will do it. Since .jar files are the same as .zip files, one of the four ZIP file IFilters they list might work (unless they are all extension-based).

根据MSDN Channel 9的这篇文章,添加一个合适的IFilter就可以了。由于.jar文件与.zip文件相同,因此它们列出的四个ZIP文件IFilter中的一个可能有效(除非它们都是基于扩展名的)。

#6


From Brenden Anstey's Blog:

来自Brenden Anstey的博客:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.jar]
"Content Type"="application/x-zip-compressed"
"PerceivedType"="compressed"
@="CompressedFolder"

[HKEY_CLASSES_ROOT\.jar\CompressedFolder]

[HKEY_CLASSES_ROOT\.jar\CompressedFolder\ShellNew]
"Data"=hex:50,4b,05,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CLASSES_ROOT\.jar\OpenWithProgids]
"CompressedFolder"=""

[HKEY_CLASSES_ROOT\.jar\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\.war]
"Content Type"="application/x-zip-compressed"
"PerceivedType"="compressed"
@="CompressedFolder"

[HKEY_CLASSES_ROOT\.war\CompressedFolder]

[HKEY_CLASSES_ROOT\.war\CompressedFolder\ShellNew]
"Data"=hex:50,4b,05,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CLASSES_ROOT\.war\OpenWithProgids]
"CompressedFolder"=""

[HKEY_CLASSES_ROOT\.war\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\.ear]
"Content Type"="application/x-zip-compressed"
"PerceivedType"="compressed"
@="CompressedFolder"

[HKEY_CLASSES_ROOT\.ear\CompressedFolder]

[HKEY_CLASSES_ROOT\.ear\CompressedFolder\ShellNew]
"Data"=hex:50,4b,05,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CLASSES_ROOT\.ear\OpenWithProgids]
"CompressedFolder"=""

[HKEY_CLASSES_ROOT\.ear\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

#7


I know that it's not Windows Search, but I have long used Agent Ransack for this: it is very quick and searches through all the various java archive formats (jar, war, ear) as well as zip.

我知道这不是Windows搜索,但我长期以来一直使用Agent Ransack:它非常快速并且搜索所有各种java存档格式(jar,war,ear)以及zip。

A feature that I particularly like and use a lot is saving a search: you can save the criteria (so that you can repeat that search easily) or the results.. So when I am working on a project, I will often want to search through the project directory tree for a file (or a file within a jar/zip). I perform the search once and save the criteria as a .srf file, which I can open quickly to perform similar searches afterwards.

我特别喜欢和使用的一个功能是保存搜索:您可以保存标准(以便您可以轻松地重复该搜索)或结果..因此,当我正在处理项目时,我经常要搜索通过项目目录树获取文件(或jar / zip中的文件)。我执行一次搜索并将条件保存为.srf文件,我可以快速打开以执行类似的搜索。

#8


I made another version of FindClassInJars here. It is the same look but searches a little better and smarter. Click the "Raw button here: https://github.com/Oxvalley/FindClassInJars/blob/master/lib/findclassinjars-2.0.0.jar

我在这里制作了另一个版本的FindClassInJars。外观相同,但搜索效果更好,更智能。单击“原始按钮:https://github.com/Oxvalley/FindClassInJars/blob/master/lib/findclassinjars-2.0.0.jar

#9


a while back I developed this: https://github.com/javalite/jar-explorer just for the occasion. works even on windows :)

不久前我开发了这个:https://github.com/javalite/jar-explorer只是为了这个场合。甚至在Windows上工作:)

#10


As suggested by @iubing, the FindClassInJars code works fairly well, but the author must have botched the packaging.

正如@iubing所建议的那样,FindClassInJars代码运行得相当好,但作者必须对包装进行破坏。

I've forked the FindClassInJars util from google code, you can get a built copy here that works. Just click the "raw" button.

我已经从谷歌代码分叉了FindClassInJars工具,你可以在这里获得一个有效的内置副本。只需单击“原始”按钮即可。