Microsoft KB Archive/243022

From BetaArchive Wiki
Knowledge Base


How To Use Third-Party Packages from Visual J++ 6.0

Article ID: 243022

Article Last Modified on 6/14/2006



APPLIES TO

  • Microsoft Visual J++ 6.0 Standard Edition
  • Microsoft Java Virtual Machine



This article was previously published under Q243022

SUMMARY

This article illustrates how to access third-party packages from within Visual J++ 6.0.

MORE INFORMATION

NOTE: The Microsoft virtual machine (Microsoft VM), does not support JDK versions later than JDK 1.1.4. Packages must be found within or be compatible with the JDK version 1.1.4.

The following steps illustrate how to access a third-party package:

  1. If you have a Java Archived Redistribution format (JAR) file that compression is one or less proceed to step two. Otherwise, uncompress the third-party JAR file and re-zip it without compression, creating a file such as Mypackage.zip.
  2. Place the JAR file or new zip file in the following directory:

    C:\%windir%\java\classes
                        
  3. Modify the CLASSPATH in the registry. Run RegEdit.exe and locate the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM
                            

    and modify the CLASSPATH string to include the JAR file or new zipped file. For example:

    C:\%windir%\java\classes\mypackage.zip
                            

    needs to be added to the end of the string, and don't forget the semi-colon separating each entry in the string. Also note the "." at the end of the CLASSPATH string.

You should now be able to access and use the third-party classes from within Visual J++ 6.0.

The following is a list Packages that have been known to be accessed with Visual J++ area:

  • BEA Jolt 1.1
  • JClass
  • JGL
  • JFC/Swing


REFERENCES

Currently the Microsoft Virtual Machine only supports up to JDK 1.1.4 versions.

Another reference discussing compatibility of the Microsoft VM with the Sun JDK:

214828 INFO: JDK Compatibility for Microsoft VM


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

Keywords: kbhowto KB243022