Microsoft KB Archive/167938

= INFO: How Do I Run JavaSrc After Installing Classes.zip =

Article ID: 167938

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Visual J++ 1.0 Standard Edition
 * Microsoft Visual J++ 1.1 Standard Edition
 * Microsoft Software Development Kit for Java 2.02
 * Microsoft Software Development Kit for Java 2.01
 * Microsoft Software Development Kit for Java 2.02
 * Microsoft Software Development Kit for Java 3.0
 * Microsoft Software Development Kit for Java 3.1
 * Microsoft Software Development Kit for Java 3.2

-



This article was previously published under Q167938



SUMMARY
This article describes the JavaSrc.exe utility installed by Microsoft Visual J++ and the Microsoft SDK for Java. 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 \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 Microsoft 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/mscorp/java by following the download link.

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

If you are running the SDK for Java, you may use the classd.exe file located in your \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

