INFO: How Do I Run JavaSrc After Installing Classes.zip (167938)



The information in this article applies to:

  • Microsoft Visual J++ 1.0
  • Microsoft Visual J++ 1.1
  • Microsoft SDK for Java 2.0
  • Microsoft SDK for Java 2.01
  • Microsoft SDK for Java 2.02
  • Microsoft SDK for Java 3.0
  • Microsoft SDK for Java 3.1
  • Microsoft SDK 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 <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/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 <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 about obtaining the latest version of the Microsoft VM, click the article number below to view the article in the Microsoft Knowledge Base:

163637 INFO: Availability of Current Build of Microsoft VM

For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:6/14/2006
Keywords:kbArtTypeINF kbinfo kbusage KB167938