Class LaunchJNLP


  • public final class LaunchJNLP
    extends java.lang.Object
    Launches JNLP URL application represented by the enumeration of LaunchJNLP.EType.
    Version:
    $Id: LaunchJNLP.java 86268 2019-08-13 09:12:09Z walla $
    Author:
    walla
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LaunchJNLP.EFlag
      Different flags depending on the underlying OS.
      static class  LaunchJNLP.EType
      Enumeration of the JNLP application entries which deliver information on the concrete application, for example the current application name, the initial and maximum heap size or the JNLP URL.
    • Constructor Summary

      Constructors 
      Constructor Description
      LaunchJNLP()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void launch​(LaunchJNLP.EType jnlp_, boolean waitForCompletion_, java.lang.String... parameters_)
      Launches on the enumeration LaunchJNLP.EType the corresponding JNLP URL in a new process.
      static void launch​(LaunchJNLP.EType jnlp_, java.lang.String... parameters_)
      Launches on the enumeration LaunchJNLP.EType the corresponding JNLP URL in a new process.
      static void main​(java.lang.String... args_)
      Main class method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CLAZZ

        public static final java.lang.String CLAZZ
      • DEFAULT_INITIAL_HEAP_SIZE

        public static final int DEFAULT_INITIAL_HEAP_SIZE
        Default value of the initial heap size in MB.
      • DEFAULT_MAXIMUM_HEAP_SIZE

        public static final int DEFAULT_MAXIMUM_HEAP_SIZE
        Default value of the maximum heap size in MB.
      • JNLP_HEAP_SIZE_PROPERTIES

        public static final java.lang.String JNLP_HEAP_SIZE_PROPERTIES
        URL of the heap size file for the launched JNLP processes.
        See Also:
        Constant Field Values
      • JNLP_INCLUSIVE_OPTION_FRAGMENT

        public static final java.lang.String JNLP_INCLUSIVE_OPTION_FRAGMENT
        The obsolete 'javaws' application (up to Java 9) needs a pre fragment of '-J' to declare options for the called Java environment. This is for the new starting mechanism with Jaka's 'jaws' unnecessary and therefore set to an empty string.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LaunchJNLP

        public LaunchJNLP()
    • Method Detail

      • main

        public static final void main​(java.lang.String... args_)
        Main class method. Demonstrates the use of this launcher class.
        Parameters:
        args_ - Arguments.
      • launch

        public static final void launch​(LaunchJNLP.EType jnlp_,
                                        java.lang.String... parameters_)
                                 throws java.io.IOException
        Launches on the enumeration LaunchJNLP.EType the corresponding JNLP URL in a new process. Waits automatically for completion. It doesn't check if the parameters are valid!
        Parameters:
        jnlp_ - JNLP enumeration component.
        parameters_ - List of parameters.
        Throws:
        java.io.IOException - Is thrown if an IO error occurs in the file system.
      • launch

        public static final void launch​(LaunchJNLP.EType jnlp_,
                                        boolean waitForCompletion_,
                                        java.lang.String... parameters_)
                                 throws java.io.IOException
        Launches on the enumeration LaunchJNLP.EType the corresponding JNLP URL in a new process. It doesn't check if the parameters are valid!
        Parameters:
        jnlp_ - JNLP enumeration component.
        waitForCompletion_ - Boolean value which waits for completion if set to true.
        parameters_ - List of parameters.
        Throws:
        java.io.IOException - Is thrown if an IO error occurs in the file system.