<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
 <!-- page name="java"-->
 <template>
  <do optional="false" label="Back" type="prev">
   <prev/>
  </do>
 </template>
 <card ordered="true" newcontext="false" id="search">
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="tcpip.wml#tcpip"/>
  </do>
  <!-- h1 -->
  <h1>Searching Java files on Windows</h1>
  <p>In late June 2002, Microsoft announced that "its <a href="http://www.FindArticles.com/p/articles/mi_m0BRZ/is_7_22/ai_101613892">[Windows] operating systems will no longer support [the] Java programming language</a>." One of the consequences of this "desupport" of Java by Microsoft is that, starting with Windows XP, the Search Companion in the operating system, as supplied by Microsoft, will no longer search files with certain extensions, such as Java source code files, which end with .java. For example, if you search for the word <span class="output">package</span>, which appears near the beginning of almost every Java source file, the Search Companion will find it only if it is part of the file name. </p>
  <p>To fix this "feature" requires a change to the Windows registry that is described in a <a href="http://support.microsoft.com/kb/309173/">Microsoft Knowledge Base article</a>. The registry changes can be made with a file that contains the following data: </p>
  <p align="left">FixSearchForJavaFiles.reg</p>
  <p align="left">Windows Registry Editor Version 5.00<br/>[HKEY_CLASSES_ROOT\.java]"PerceivedType"="text"<br/>[HKEY_CLASSES_ROOT\.java\PersistentHandler]@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"</p>
  <p>Any other file extensions that are being skipped can be fixed in the same way simply by replacing both instances of .java with the extension to be fixed. </p>
  <p>Double click on the file name to run it and update the registry, or else execute it using the regedit command: </p>
  <p align="left">regedit FixSearchForJavaFiles.reg</p>
  <p align="left">
   <a href="tcpip.wml#tcpip">Next: Page 2</a>
   <br/>
   <a href="index.wml">Back Up: Windows</a>
   <br/>
  </p>
 </card>
</wml>

