INFO: How Do I run JavaSrc After Installing Classes.zip

Last reviewed: January 29, 1998
Article ID: Q167938
The information in this article applies to:
  • Microsoft Visual J++, versions 1.0, 1.1
  • Microsoft SDK for Java 2.0

SUMMARY

This article describes the JavaSrc.exe utility installed by Visual J++ and the SDK for Java 2.0. This tool helps extract Java sources from Classes.zip file. It also discusses the problem that occurs when you run JavaSrc on Classes.zip file and a message stating that the Classes.zip file did not contain any Java sources appears.

MORE INFORMATION

JavaSrc is a utility for extracting .JAVA files from a .ZIP file. It extracts the source files for the Java class libraries from the Microsoft version of Classes.zip. Visual J++ installs this tool in the directory %windir%\java\classes\ and the SDK installs the tool into <sdkdir>\bin. To extract the .JAVA files from Classes.zip, use the following command:

   javasrc classes.zip

This creates a directory tree below the directory that Classes.zip resides in and contains the source files for the Java class libraries.

Whenever a new version of Classes.zip is installed, you should run the JavaSrc.exe tool. Sometimes when you run JavaSrc on Classes.zip file, a dialog box appears with the message that the installed version of

'Classes.zip' is not a developer version and it does not contain any java
sources. This problem could occur because the Classes.zip file was updated during an Internet Explorer or Java Virtual Machine installation. This could cause a version mismatch of the Classes.zip file.

In this case, delete the Classes.zip file from %windir%\java\classes directory, then try installing the classd.exe file from http://www.microsoft.com/java by following the download link.

NOTE: Before you install the updated Classes.zip file, make sure you have the latest Microsoft Virtual Machine for Java on http://www.microsoft.com/java. See the References section of this article for more information.

If you are running the SDK for Java 2.0, you may use the classd.exe file located in your <sdkinstall-dir>\bin directory.

Then run classd.exe in the Windows Explorer. This should install Classes.zip file. Then run JavaSrc.exe on Classes.zip, which should extract all the Java source files.

To delete the extracted Java source files from the hard drive, use the following command:

   javasrc -classes.zip

REFERENCES

For additional information on how to find the latest Microsoft Virtual Machine, please see the following article(s) in the Microsoft Knowledge Base:

   ARTICLE-ID: Q163637
   TITLE     : Availability of Current Build of Microsoft VM for Java

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/
   http://support.microsoft.com/support/java/

Keywords          : kbusage VJGenIss
Technology        : kbInetDev
Version           : 1.0 1.1
Platform          : WINDOWS


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 29, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.