<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/styles/XMLStylesDoc_xhtml11_en.xsl"?><!DOCTYPE document SYSTEM "/schemas/XMLStyles10.dtd">
<document xmlns="http://XMLStyles.com/namespaces/styles" xmlns:xst="http://XMLStyles.com/namespaces/styles" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:date="http://exslt.org/dates-and-times">
   <noxml>
      <p xmlns="http://www.w3.org/1999/xhtml"/>
      <!-- You are viewing the source.  The following message should be ignored if you did "View Source" in your browser. -->
      <p xmlns="http://www.w3.org/1999/xhtml">
ATTENTION: XML WEB PAGES NOT SUPPORTED
   If you see this message, your current browser does not support the
   1999 XSLT 1.0 (or later) standard for XML web pages such as this one.
   Please upgrade your browser to a newer version
   that supports 1999 or later standards such as:
      Mozilla Firefox version 1.0.2 or later (GetFirefox -&gt; http://www.GetFirefox.com/)
      Netscape version 8 or later
      Safari version 1.3 or later
      Opera version 9 or later
      Microsoft Internet Explorer (MSIE) version 5 or later
   For further assistance, contact the software vendor for your browser.
   To go to the X<!-- extended HTML -->HTML version of this page click the following link:
<a href="index.html">index.html</a>
      </p>
      <p xmlns="http://www.w3.org/1999/xhtml">&#160;</p>
   </noxml>
   <path>/computers/os/windows/</path>
   <site>How To Guides</site>
   <logo xlink:type="simple" xlink:href="/images/howtohome.jpg" media="screen" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguides.jpg" media="print" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguidesmobile.jpg" media="handheld" width="150" height="17">How To Guides</logo>
   <navigation where="sections">
      <label>How To Guides</label>
      <link xlink:type="simple" xlink:href="/business/index.xml">Business</link>
      <link xlink:type="simple" xlink:href="/computers/index.xml">Computers</link>
      <link xlink:type="simple" xlink:href="/computers/databases/index.xml">Databases</link>
      <link xlink:type="simple" xlink:href="/internet/index.xml">Internet</link>
      <link xlink:type="simple" xlink:href="/mobile/index.xml">Mobile</link>
      <link xlink:type="simple" xlink:href="/money/index.xml">Money</link>
      <link xlink:type="simple" xlink:href="/movies/index.xml">Movies</link>
      <link xlink:type="simple" xlink:href="/computers/os/index.xml">Operating Systems</link>
   </navigation>
   <navigation where="up">
      <link xlink:type="simple" xlink:href="../../">Computers</link>
      <link xlink:type="simple" xlink:href="../">Operating Systems</link>
   </navigation>
   <navigation where="subsections">
      <link xlink:type="simple" xlink:href="/computers/os/unix/">UNIX</link>
      <link xlink:type="simple" xlink:href="/computers/os/macosx/">Mac OS X</link>
      <link xlink:type="simple" xlink:href="/computers/os/ibmzos/">IBM z/OS</link>
      <link xlink:type="simple" xlink:href="index.xml">Windows</link>
   </navigation>
   <section id="body" type="body">
      <pages name="java">
         <label>Java</label>
         <navigation where="up">
            <link xlink:type="simple" xlink:href="index.xml">Windows</link>
         </navigation>
         <page id="java" name="java">
            <title>Java on Windows</title>
            <label>Java</label>
            <subpage id="N1011B" name="search">
               <h1>Searching Java files on Windows</h1>
               <p>In late June 2002, Microsoft announced that "its
                  <link xlink:type="simple" xlink: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</link>."
                  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 <code>.java</code>.
                  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
                  <link xlink:type="simple" xlink:href="http://support.microsoft.com/kb/309173/">Microsoft Knowledge Base article</link>.
                  The registry changes can be made with a file that contains the following data:
               </p>
               <blockcode title="FixSearchForJavaFiles.reg">
                  <l>Windows Registry Editor Version 5.00</l>
                  <br/>
                  <l>[HKEY_CLASSES_ROOT\.java]</l>
                  <l>"PerceivedType"="text"</l>
                  <br/>
                  <l>[HKEY_CLASSES_ROOT\.java\PersistentHandler]</l>
                  <l>@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"</l>
               </blockcode>
               <p>Any other file extensions that are being skipped can be fixed in the same way simply
                  by replacing both instances of <code>.java</code> 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 <code>regedit</code> command:
               </p>
               <blockcode>
                  <l>regedit FixSearchForJavaFiles.reg</l>
               </blockcode>
            </subpage>
            <updated local="2006-11-22">Wednesday November 22, 2006</updated>
         </page>
      </pages>
   </section>
   <copyright>Copyright © 2006 How To Guides .com. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.</copyright>
   <disclaimer>All information, links, forms, applications and other items on this site or obtained from it are provided <b>AS IS</b>, WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</disclaimer>
   <ids urchin="UA-779578-2"/>
</document>

