Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

webstartservices.installer
Class RuntimeInstaller  view RuntimeInstaller download RuntimeInstaller.java

java.lang.Object
  extended bywebstartservices.installer.RuntimeInstaller

public class RuntimeInstaller
extends java.lang.Object

RuntimeInstaller - This installer starts running before downloading the actual runtime package from our server across http; rather like iesetup. The address of the runtime to download from is supplied by the runtime.url parameter; this in turn was supplied via a RuntimeMapper choice from DownloadService. Advantages over JREInstaller include a quicker popup, the downloaded runtime is stored as a temp file which should automatically get deleted after use (rather than stoge up the users WebStart cache). The runtime dosnt need copying after downloading before we can access it, nor does it need double jar'ing. An unintenional side-effect is that this jar won't need signing; maybe I should revise this issue for security sake). If it has been signed it must be valid or SecurityExceptions will be thrown.


Nested Class Summary
(package private)  class RuntimeInstaller.DirectoryFilter
           
 
Field Summary
private  ExtensionInstallerService installerService
           
 
Constructor Summary
RuntimeInstaller()
           
 
Method Summary
protected  java.lang.String guessAtRuntimeLocation_Win32(java.lang.String version)
           
protected  void inflateArchive(java.lang.String installPath, java.util.zip.ZipFile zipFile)
           
protected  void installNativeRuntime_Win32(java.io.File tempFile)
           
protected  java.io.File locateRuntime_Win32(java.lang.String version)
          Locate the runtime location for the given java vm version.
static void main(java.lang.String[] args)
           
private  void setExecutePermissions(java.lang.String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

installerService

private ExtensionInstallerService installerService
Constructor Detail

RuntimeInstaller

public RuntimeInstaller()
Method Detail

main

public static void main(java.lang.String[] args)

inflateArchive

protected void inflateArchive(java.lang.String installPath,
                              java.util.zip.ZipFile zipFile)
                       throws java.lang.Exception

setExecutePermissions

private void setExecutePermissions(java.lang.String command)
                            throws java.io.IOException

installNativeRuntime_Win32

protected void installNativeRuntime_Win32(java.io.File tempFile)
                                   throws java.lang.Exception

locateRuntime_Win32

protected java.io.File locateRuntime_Win32(java.lang.String version)
Locate the runtime location for the given java vm version. Should work for most default installs -- but isnt a robust solution; certain method would require windows registry access via JNI.


guessAtRuntimeLocation_Win32

protected java.lang.String guessAtRuntimeLocation_Win32(java.lang.String version)