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

ID: Q167938


The information in this article applies to:


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 <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 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/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/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 <sdkdir>\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 in the Microsoft Knowledge Base:

Q163637 Availability of Current Build of Microsoft VM

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, please see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/

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

Additional query words:


Keywords          : kbusage kbGenInfo kbSDKJava201 kbSDKJava300 kbVJ kbVJ100 kbVJ110 kbSDKJava310 kbSDKJava202 kbSDKJava320 
Version           : WINDOWS:1.0,1.1,2.0,2.01,2.02,3.0,3.1,3.2
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: July 27, 1999