Environment
Situation
Resolution
This article describes how to create an isolated Java component that can be included in a ZAV virtual application.
STEP 1: START WITH A CLEAN WINDOWS 7 32-BIT VIRTUAL MACHINE WITH SERVICE PACK 1 AND IE9 OR LATER
When using the snapshot method to virtualize an application, it is important to start with a clean system so that no components are missed during the capture and diff process.
The snapshot process can be performed on a virtual machine or a physical machine. Typically a virtual machine is used so that the system can easily be reset in case the process needs to be repeated.
There are many options for virtual machine software including VMWare Workstation, Oracle Virtual Box (free) and Microsoft Virtual PC.
STEP 2: SNAPSHOT THE INSTALLATION
- Install ZAV Studio
- Take a "Before" capture
- Save the before snapshot
- Install the required Java version
- Test the Java version by doing a Java version check via the web
- Turn off Java Updates via the Control Panel
- Stop any Java services that were started
- Take the "Capture and Diff"
STEP 3: EDIT THE CONFIGURATION
- Backup the original configuration file by saving the configuration under a new name
- Set the Project type to Component
- Set the output file to java-<version>.svm
- Go to Settings > Process Configuration > Virtual Services and uncheck "Auto Start"
- Set the following folders to Full isolation
- Windows folder\Sun
- Program Files\Java
- Program Files\Common\Java
- Set the following registry keys to Full isolation (create key if it does not exist)
- Current user root\Software\Classes
- Current user root\Software\Classes\CLSID
- Current user root\Software\Classes\JavaPlugin.<version>
- Local machine root\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects
- Go to Settings > Properties and uncheck "Inherit properties" and put in meta data for the Component
- This is used to distinguish the component when importing into other projects.
STEP 4: BUILD AND TEST THE COMPONENT
The easiest way to test the component is to build a virtual version of Internet Explorer and import the Java component under the Components section.
Run the virtual Internet Explorer with the Java component included and verify the Java version via the web.