Tags:
tag this topic
create new tag
view all tags
---+ APPX Desktop Client Launched via Java Web Start <i>This document will explain how to start the APPX Desktop Client via Java Web Start Technology.</i><span data-mce-mark="1"><span data-mce-mark="1"> %TOC%</span></span> ---++ Overview When you publish the APPX Desktop Client using Java Web Start technology you ensure the most current version of the application will be deployed, as well as the correct version of the Java Runtime Environment (JRE). Since the APPX Desktop Client will only be configured on the web server, you will not need to install the client on each desktop in your enterprise. This document applies to APPX Desktop Client version 5.2.2 and higher. These instructions do not require any APPX server configuration other than an APPX Login Manager configured to accept logins. The size of the APPX Java Web Start bundle is about 18 MB. When the APPX Desktop Client is run for the first time, Java Web Start will download the entire package; the next time it will check only for modified jar files (an upgrade) and download them. If this is not the case, the application will start immediately. The first time a user connects to the URL, an icon will be added to their desktop. Subsequent connections can be made by just clicking the icon on the desktop. ---++ Required software components ---+++ APPX Desktop Client Java Web Start Bundle You can get the APPX Desktop Client Java Web Start Bundle from the <a href="http://www.appx.com/desktop-products" target="_blank">Desktop Downloads</a> page. ---+++ Web Server You need a functioning web server configured with jnlp mime type support. Apache and IIS are two common servers. ---++ Quick steps * Make sure your Web Server can process .jnlp files * Unbundle the APPX Desktop Client Java Web Start Bundle files into a directory in your web server's web root. * Edit the .jnlp file and modify the codebase URL and any href tags to suit your APPX installation. ---++ Detailed steps Here are the steps I used to load the APPX Desktop Client via Java Web Start. These instructions assume that you already have a working installation of APPX Server that is configured with a Client Manager ( [[APPXLoginManagerForUnixLinux][Unix or Linux]] or [[APPXLoginManagerForWindows][Windows]]) and accepting logins. You must also have a web server installed and started. ---+++ Download and place the APPX Desktop Client Java Web Start Bundle. For a Windows Web Server, download the Java Web Start Bundle and place the bundle in a directory off of your web server's web root. Extract the files using the appropriate command (tar or zip). ---++++ index.html The index.html file is a starter file that loads the .jnlp file. There is a bit of javascript code that attempts to detect if a JRE is installed on the user's desktop for the Java Web Start launch. If the JRE needs to be installed or updated the script will either attempt to update the JRE or present the user with the appropriate link to download the software manually. You can customize this file as desired. Alternatively, some browsers will open the .jnlp file directly. ---++++ appx.jnlp This is an XML file that defines the environment for the APPX Desktop Client. The file is made up of elements, element values, element stanzas and comments. The file is documented with comments. The only change required is the URL of the appx.jnlp file. For example, if we installed the web start bundle in the 'appx' folder of our 'www.abc-company.com' web site, then we would change the 'codebase' line to: codebase="http://www.abc-company.com/appx/" You may also want to customize the "<menu submenu="APPX via JWS">" line. This decription is used for the desktop icon that is automatically created, you can change this to something more meaningful for your installation. At the bottom of the appx.jnlp file, notice the application-desc elements with argument attributes of -windowTitle, -remoteHost, etc. You can add any APPX Desktop Client startup parameter to this section. To see the allowed parameter names, look under 'File->Preferences' after you have logged on. Any changes you make will be used the next time anyone logs in. ---+++++ Table of possible element / attribute available in a JNLP file. <table border="1" cellpadding="4" cellspacing="3" style="width: 1111px;"><col width="126"></col> <col width="140"></col> <col width="646"></col> <col width="73"></col> <col width="66"></col> <tbody> <tr><th width="126"> Element </th><th width="140"> Attributes </th><th width="646"> Description </th><th width="73"> Since </th><th width="66"> Required </th></tr> <tr> <td width="126"> jnlp </td> <th width="140"> </th> <td width="646"> This is the main xml element for a jnlp file. Everything is contained within the jnlp element. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> spec </td> <td width="646"> The spec attribute can be 1.0, 1.5.0, or 1.6.0 or can use the wildcards such as 1.0+ or 1.6+. It denoted the minimum version of the JNLP Specification that this jnlp file can work with. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> codebase </td> <td width="646"> The codebase attribute specifies the base location for all relative URLs specified in href attributes in the JNLP file. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> href </td> <td width="646"> The href specifies the URL of the JNLP file itself. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> version </td> <td width="646"> The version of the application being launched, as well as the version of the JNLP file itself. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> information </td> <td width="140"> </td> <td width="646"> The information element contains other elements that describe the application and its source. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> os </td> <td width="646"> Specifies the operating system for which this information element should be considered. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> arch </td> <td width="646"> Specifies the architecture for which this information element should be considered </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> platform </td> <td width="646"> Specifies the platform for which this information element should be considered. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> locale </td> <td width="646"> Specifies the locale for which this information element should be considered. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> title </td> <td width="140"> </td> <td width="646"> The title element specifies the title of the application. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> vendor </td> <td width="140"> </td> <td width="646"> The vendor element specifies the provider of the application. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> homepage </td> <td width="140"> </td> <td width="646"> The homepage of the application. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> href </td> <td width="646"> A URL pointing to where more information on this application can be found. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> description </td> <td width="140"> </td> <td width="646"> A short statement describing the application. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> kind </td> <td width="646"> An indicator as to what type of description this is, legal values are one-line, short, and tooltip. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> icon </td> <td width="140"> </td> <td width="646"> Describes an icon that can be used to identify the application to the user. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> href </td> <td width="646"> A URL pointing to the icon file, may be in one of the following formats: gif, jpg, png, ico. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> kind </td> <td width="646"> Indicates the suggested use of the icon, can be: default, selected, disabled, rollover, splash, or shortcut. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> width </td> <td width="646"> Can be used to indicate the resolution of the image. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> height </td> <td width="646"> Can be used to indicate the resolution of the image. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> depth </td> <td width="646"> Can be used to indicate the resolution of the image. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> offline-allowed </td> <td width="140"> </td> <td width="646"> Indicates that this application can operate when the client system is disconnected from the network. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> shortcut </td> <td width="140"> </td> <td width="646"> The shortcut element can be used to indicate an application's preferences for desktop integration. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> online </td> <td width="646"> Can be used to describe the application's preference for creating a shortcut to run online or offline. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> desktop </td> <td width="140"> </td> <td width="646"> Can be used to indicate an application's preference for putting a shortcut on the user's desktop. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> menu </td> <td width="140"> </td> <td width="646"> Can be used to indicate an application's preference for putting a menu item in the users start menus. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> sub-menu </td> <td width="646"> Can be used to indicate an application's preference for where to place the menu item. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> association </td> <td width="140"> </td> <td width="646"> Can be used to hint to the JNLP client that it wishes to be registered with the operating system as the primary handler of certain extensions and a certain mime-type. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> extensions </td> <td width="646"> Contains a list of file extensions (separated by spaces) that the application requests it be registered to handle. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> mime-type </td> <td width="646"> Contains the mime-type that the application requests it be registered to handle. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> related-content </td> <td width="140"> </td> <td width="646"> Describes an additional piece of related content that may be integrated with the application. </td> <td width="73"> 1.5.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> href </td> <td width="646"> A URL pointing to the related content. </td> <td width="73"> 1.5.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> </td> <td width="646"> </td> <td width="73"> </td> <td width="66"> </td> </tr> <tr> <td width="126"> update </td> <td width="140"> </td> <td width="646"> The update element is used to indicate the preferences for how application updates should be handled by the JNLP Client. </td> <td width="73"> 1.6.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> check </td> <td width="646"> Indicates the preference for when the JNLP Client should check for updates. It can be always, timeout, or background.. </td> <td width="73"> 1.6.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> policy </td> <td width="646"> Indicates the preference for how the JNLP Client should handle an application update when it is known an update is available before the application is launched. It can be always, prompt-update, or prompt-run. </td> <td width="73"> 1.6.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> </td> <td width="646"> </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> security </td> <td width="140"> </td> <td width="646"> This element can be used to request enhanced permissions. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> all-permissions </td> <td width="140"> </td> <td width="646"> Requests that the application be run with all permissions. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> j2ee-application-client-permissions </td> <td width="140"> </td> <td width="646"> Requests that the application be run with a permission set that meets the security specifications of the J2EE Application Client environment. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> </td> <td width="646"> </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> resources </td> <td width="140"> </td> <td width="646"> Describes all the resources that are needed for an application. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> os </td> <td width="646"> Specifies the operating system for which the resources element should be considered. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> arch </td> <td width="646"> Specifies the architecture for which the resources element should be considered. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> locale </td> <td width="646"> Specifies that the locales for which the resources element should be considered. </td> <td width="73"> </td> <td width="66"> </td> </tr> <tr> <td width="126"> java (or java se) </td> <td width="140"> </td> <td width="646"> Specifies what version(s) of Java to run the application with. </td> <td width="73"> 1.6.0 (java) </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> version </td> <td width="646"> Describes an ordered list of version ranges to use. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> href </td> <td width="646"> The URL denoting the supplier of this version of java, and where it may be downloaded from. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> java-vm-args </td> <td width="646"> Indicates an additional set of standard and non-standard virtual machine arguments that the application would prefer the JNLP Client to use when launching Java. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> initial-heap-size </td> <td width="646"> Indicates the initial size of the Java heap. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> max-heap-size </td> <td width="646"> Indicates the maximum size of the Java heap. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> jar </td> <td width="140"> </td> <td width="646"> Specifies a JAR file that is part of the application's classpath. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> href </td> <td width="646"> The URL of the jar file. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> version </td> <td width="646"> The requested version of the jar file. Requires using the version-based download protocol </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> main </td> <td width="646"> Indicates if this jar contains the class containing the main method of the application. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> download </td> <td width="646"> Can be used to indicate this jar may be downloaded lazily, or when needed. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> size </td> <td width="646"> Indicates the downloadable size of the jar file in bytes. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> part </td> <td width="646"> Can be used to group resources together so they will be downloaded at the same time. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> nativelib </td> <td width="140"> </td> <td width="646"> Specifies a JAR file that contains native libraries in its root directory. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> href </td> <td width="646"> The URL of the jar file. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> version </td> <td width="646"> The requested version of the jar file. Requires using the version-based download protocol </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> download </td> <td width="646"> Can be used to indicate this jar may be downloaded lazily. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> size </td> <td width="646"> Indicates the downloadable size of the jar file in bytes. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> part </td> <td width="646"> Can be used to group resources together so they will be downloaded at the same time. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> extension </td> <td width="140"> </td> <td width="646"> Contains pointer to an additional component-desc or installer-desc to be used with this application. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> href </td> <td width="646"> The URL to the additional extension jnlp file. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> version </td> <td width="646"> The version of the additional extension jnlp file. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> name </td> <td width="646"> The name of the additional extension jnlp file </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> ext-download </td> <td width="140"> </td> <td width="646"> Can be used in an extension element to denote the parts contained in a component-extension. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> ext-part </td> <td width="646"> Describes the name of a part that can be expected to be found in the extension. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> download </td> <td width="646"> Can be used to indicate this extension may be downloaded eagerly or lazily. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> part </td> <td width="646"> Denotes the name of a part in this jnlp file to include the extension in. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> package </td> <td width="140"> </td> <td width="646"> Can be used to indicate to the JNLP Client which packages are implemented in which JAR files. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> name </td> <td width="646"> Package name contained in the jar files of the given part. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> part </td> <td width="646"> Part name containing the jar files that include the given package name. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> recursive </td> <td width="646"> Can be used to indicate that all package names beginning with the given name, can be found in the given part. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> property </td> <td width="140"> </td> <td width="646"> Defines a system property that will be available through the System.getProperty and System.getProperties methods. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> name </td> <td width="646"> Name of the system property. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> value </td> <td width="646"> Value it will be set to. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> </td> <td width="646"> </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> </td> <td width="646"> Note: A jnlp file must contain one of application-desc, applet-desc, component-desc, or installer-desc </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> applicaation-desc </td> <td width="140"> </td> <td width="646"> Denotes this is the jnlp file for an application. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> main-class </td> <td width="646"> The name of the class containing the public static void main(String[]) method of the application. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> argument </td> <td width="140"> </td> <td width="646"> Each argument contains (in order) an additional argument to be passed to main. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> applet-desc </td> <td width="140"> </td> <td width="646"> Denotes this is the jnlp file for an applet. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> main-class </td> <td width="646"> This is the name of the main Applet class. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> documentbase </td> <td width="646"> The document base for the Applet as a URL. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> name </td> <td width="646"> Name of the Applet. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> width </td> <td width="646"> The width of the applet in pixels. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> height </td> <td width="646"> The height of the applet in pixels </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> param </td> <td width="140"> </td> <td width="646"> A set of parameters that can be passed into the applet. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> name </td> <td width="646"> The name of this parameter </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> </td> <td width="140"> value </td> <td width="646"> The value of this parameter </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> <tr> <td width="126"> component-desc </td> <td width="140"> </td> <td width="646"> Denotes this is the jnlp file for a component extension. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> installer-desc </td> <td width="140"> </td> <td width="646"> Denotes this is the jnlp file for an installed extension. </td> <td width="73"> 1.0 </td> <td width="66"> </td> </tr> <tr> <td width="126"> </td> <td width="140"> main-class </td> <td width="646"> The name of the class containing the public static void main(String[]) method of the installer. </td> <td width="73"> 1.0 </td> <td width="66"> yes </td> </tr> </tbody> </table> ---+++ Configure your web server's jnlp Mime type settings. Your webserver needs to support the .jnlp mime type. There are too many web servers and web server version that each configure via different actions, syntax or configuration file location that it is beyond the scope of this document to cover mime type configuration fully. However, this might be enough to get you on the right track if your server is not already configured for jnlp mime type support. ---++++ Apache web server Mime type settings You need to add a mime type entry for jnlp. You can either use the Apache [[http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addtype][AddType]] directive inside the Apache [[http://httpd.apache.org/docs/2.0/configuring.html][httpd.conf]] file or the [[http://httpd.apache.org/docs/2.0/howto/htaccess.html][.htaccess]] file, or modify the Apache web server global mime.types file. The location of this mime.types file is specified by the [[http://httpd.apache.org/docs/2.0/mod/mod_mime.html#typesconfig][TypesConfig]] Apache directive. Apache recommends that you use the [[http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addtype][AddType]] directive. If you wish to modify the Apache global [[http://httpd.apache.org/docs/2.0/mod/mod_mime.html#typesconfig][TypesConfig]] file and the file exists in /etc/mime.types, then you might try syntax like the following which will grep for the jnlp entry, and if not found will append an entry for jnlp support. <blockquote dir="ltr" style="margin-right: 0px;"> <pre>[joe@webserver /]$ *grep -qs 'application/x-java-jnlp-file' /etc/mime.types || echo 'application/x-java-jnlp-file jnlp' >> /etc/mime.types* [joe@webserver /]$ </pre> </blockquote> Or, if you wish to modify an [[http://httpd.apache.org/docs/2.0/howto/htaccess.html][.htaccess]] file in your <span data-mce-mark="1">http://www.example.com/appx/</span> directory, and your web server is configured to allow .htaccess modifications then try the following syntax which will grep for the jnlp entry, and if not found will append an entry for jnlp support. <blockquote dir="ltr" style="margin-right: 0px;"> <pre>[joe@webserver /]$ *grep -qs 'application/x-java-jnlp-file' /var/www/html/appx/.htaccess || echo 'AddType application/x-java-jnlp-file jnlp' >> /var/www/html/appx/.htaccess* [joe@webserver /]$ </pre> </blockquote> ---++++ Microsoft IIS web server Mime type settings ---+++++ Windows 2000 IIS Server Start the IIS Management Console and perform the following steps: * Right-click server computer in left pane, then select Properties from the drop-down menu. * In the 'Computer MIME Map,' click the [Edit] button. * The File Types window is displayed. Click New Type. * In the File Type box, enter the following in the Associated Extension edit box: * jnlp * In the Content Type (MIME) box, enter: * Application/x-java-jnlp-file jnlp * Click [Ok] to close the File Type box. Click [Ok] again to close the File Types Window. Click [Ok] in the Server properties window to save the changes. Restart the IIS Admin Service. ---+++++ Windows Server 2003 and XP IIS Server Start the IIS Management Console and perform the following steps: * Right-click server computer in left pane, then select Properties from the drop-down menu. * In the HTTP Headers tab, click [MIME Types]. * The MIME Types window displays. Click [New]. * In the MIME Type box, enter the following in the Extension edit box: * jnlp * In the MIME type box, enter: * Application/x-java-jnlp-file jnlp * Click [OK] to close the MIME Type box. Click [OK] again to close the MIME Types Window. Click [OK] in the Server properties window to save the changes. Restart the IIS Admin Service. ---+++++ Windows Vista IIS Server Start the IIS Management Console and perform the following steps: * Double-click the MIME Types module. * The MIME Types window displays. Click [Add] in the Action panel. * The Add MIME Type window displays. Enter the following in the File Name Extension box: * jnlp * In the MIME Type box, enter: * Application/x-java-jnlp-file jnlp * Click [OK] to close the MIME Type window. Restart the IIS Admin Service. That's all there is to publishing APPX Desktop Client utilizing Java Web Start technology. ---++ Troubleshooting tips * To clear the Web Start Cache * *javaws -uninstall* This will remove all cached applications. * Clear Browser's temporary files. ---++ <span data-mce-mark="1">Comments:</span> _Read what other users have said about this page or add your own comments._ --- <span data-mce-mark="1"><span data-mce-mark="1"> %COMMENT%</span></span> -- JoeOrtagus - 04 Mar 2009
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r73
<
r72
<
r71
<
r70
<
r69
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r73 - 2016-03-03
-
JeanNeron
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback