Home > Blogs > VMware ThinApp Blog


Step by Step Instructions on How to ThinApp Newer Java Versions

Here are instructions on how to quickly and simply capture any newer versions of Java Runtime (1.4 and higher) for testing and working on within a ThinApp packaged application. These instructions will work whether Java is captured by itself or can be incorporated as a part of a larger multi-application installation.

For capturing Java 1.3 and lower packages…see the blog entry Step by Step instructions on How to ThinApp JAVA Runtime Version 1.3.1.20.

Requirements

Instructions on How to ThinApp JAVA Runtime

These are the basic instruction you will need on How to ThinApp newer Java Runtimes.

  1. Start with a clean Windows XP image only containing ThinApp Setup Capture

            ThinApp Clean PC.png

  2. Launch ThinApp Setup Capture and create a pre-installation snapshot

            ThinApp Pre-Install Setup Capture - 1.png

  3. Launch the Java Installation/Setup

            ThinApp Java - 1.png

  NOTE: Select ALL OPTIONS to be installed (DO NOT USE INSTALL LATER/INSTALL ON FIRST USE)!

            ThinApp Java - 2.png

NOTE:  At this point, you may wish to open INETCPL.CPL from the RUN window, browse to the PROGRAMS tab, and then MANAGE ADD-ONS and disable the JQSIEStartDetectorImpl Class and, if seen, the SSV Helper Class Browser Helper Objects.  If you don't see the SSV Helper Class, it is sometimes listed as Java(tm) Plugin 2 SSV Helper Class.  If this is found, disable this to prevent "Run As" popups in Win 7, Vista, and Win 2008 systems.

  4. Run the post-installation snapshot in ThinApp Setup Capture.

            ThinApp Post-Installation Setup Capture - 1.png

            ThinApp Post-Installation Setup Capture - 2.png

            ThinApp Post-Installation Setup Capture - 3.png

  5. Deselect all pre-checked Entry Points and select IEXPLORE as the entry point (NOTE: Will need to check SHOW ENTRY POINTS USED FOR DEBUGGING option.

            ThinApp Java - 5.png

            ThinApp Java - 6.png

  6. For the Primary Data Container, type in JAVA.DAT or type in a Primary Data Container that suites you (see above image).

  7. Continue through the Setup Capture wizard, setting your desired settings. Stop and set Default File System Isolation to WRITECOPY (see below image).

            ThinApp Post-Installation Setup Capture - 7b.png

  8. Modify the Package.INI file by clicking the Edit Package.ini button.

            ThinApp Post-Installation Setup Capture - 9.png

       a. Edit the IEXPLORE.EXE Entry Point found at the bottom of the Package.INI file and add the following CommandLine option and value (bolded below).

[iexplore.exe]
Source=%ProgramFilesDir%\Internet Explorer\iexplore.exe

Shortcut=JAVA.DAT

CommandLine=%ProgramFilesDir%\Internet Explorer\iexplore.exe "http://www.javatester.org"

            ThinApp Java - 7.png

       b. Close and save the PACKAGE.INI mods.

  10. Open the project folder (click "Open Project Folder" button)

            ThinApp Post-Installation Setup Capture - 9.png

       a. Edit the text file HKEY_LOCAL_MACHINE.txt and add this key isolation at the top of the file.

            isolation_full HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects

            ThinApp Java - 9.png

       b. Edit the text file HKEY_LOCAL_MACHINE.txt and remove the RUN key and any registry entries beneath it (such as SunJavaUpdateSched and it's pertaining value).

            isolation_full HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

            ThinApp Java - 10.1.png

            ThinApp Java - 10.2.png

       c. Close and Save the text file HKEY_LOCAL_MACHINE.txt.

       d. Edit the text file HKEY_CURRENT_USER.txt and add this key isolation at the top of the file

            isolation_full HKEY_CURRENT_USER\Software\Classes\CLSID

            ThinApp Java - 10.png

       e. Close and Save the text file HKEY_CURRENT_USER.txt.

       f. Clean up the project by removing the following folders: NOTE: Make a backup first!

            %Cookies%
            %History%
            %Internet Cache%

            ThinApp Java - 11.png

            %SystemRoot%\Installer

            ThinApp Java - 12.png

            %AppData%\Sun

            ThinApp Java - 13.png

            %Program Files Common%\Java

            ThinApp Java - 14.png

       g. Close the Project Folder

  11. Click the Build button.

            ThinApp Post-Installation Setup Capture - 10.png

  12. Once the Build process is completed, click the Finish button.

  13. Copy out to a system where a different version of Java is already installed (ensure the JAVA.DAT file is next to IEXPLORE.EXE!).

  14. Launch the Internet Explorer entry point and visit http://www.javatester.org/version.html to verify correct JRE version is seen by Internet Explorer.

            ThinApp Java 15.png
This entry was posted in Applications and tagged , on by .
Dean Flaming

About Dean Flaming

Dean is currently an EUC Architect and member of the VMware End User Computing Enablement and Lighthouse Support teams, working to develop communications and IP around VMware End User Computing products and solutions as well as support many various Lighthouse accounts with their own EUC practices. Prior to this, from 2008 through 2012 Dean was one of VMware's End User Computing Specialists. Throughout his time at VMware, Dean has also written and published various articles, videos, and podcasts regarding VMware's EUC Solutions.

4 thoughts on “Step by Step Instructions on How to ThinApp Newer Java Versions

  1. Tase

    Great, now if I could only run it on Windows 7, that would be nice.

  2. John

    Has someone tred this with 1.6.20? I am having a hard time getting it to work.

  3. Dean Flaming

    @John-
    I went back and tested Java 1.6.20 and it’s pretty much the same as 1.6.17. They both package up just fine.
    There are, however, some suggested tweaks. After JAVA is installed I would suggest doing the following PRIOR to doing the ThinApp Post-Install Setup Capture.
    1. In SERVICES.MSC, stop the JAVA Update Service (I probably don’t have the name quite correct but essentially that is the service you won’t need running within your ThinApp’ed Java).
    2. Open the Internet Control Panel Applet (INETCPL.CPL from the RUN line) and disable the following:
    2.a. JAVA(tm) PLUG-IN 2 SSV HELPER
    2.b. JQSIESTARTDETECTORIMPL CLASS
    3. Test this doesn’t disable your Java functionality for your app.
    Now do your post install setup capture. Disabling the two Browser Helper Objects in Step 2. above also “should” kill off the UAC prompts on Vista and Win 7 as well. If not, clean the sandbox on a Win 7 system and run this as an administrator so the prompts can be set to ignore…then once it fires up without UAC every time, SBMERGE the sandbox to a copy of the project and rebuild and retest.
    Hope this helps!

Comments are closed.