java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.resource.JREDesc

public class JREDesc extends Object
The java element (or the j2se element) (sub-element of resources) specifies what Java Runtime Environment (JRE) versions an application is supported on, as well as standard parameters to the Java Virtual Machine. Several JREs can be specified in the JNLP file, which indicates a prioritized list of the supported JREs, with the most preferred version first.
Version:
$Revision: 1.5 $
Author:
Jon A. Maxwell (JAM) - initial author
  • Field Details

  • Constructor Details

    • JREDesc

      public JREDesc(VersionString version, String vendor, boolean require32Bit, URL location, String vmArgs, String initialHeapSize, String maximumHeapSize, List<ResourcesDesc> resources) throws ParseException
      Create a JRE descriptor.
      Parameters:
      version - the platform version or the product version if location is not null
      vendor - the vendor
      require32Bit - the hint whether this application requires a 32-bit JVM
      location - the location of a JRE product or null
      vmArgs - arguments to VM
      initialHeapSize - initial heap size
      maximumHeapSize - maximum head size
      resources - list of ResourceDesc objects
      Throws:
      ParseException - is something goes wrong
  • Method Details

    • getVersion

      public VersionString getVersion()
      Returns:
      the JRE version. Use isPlatformVersion to determine if this version corresponds to a platform or product version.
    • isPlatformVersion

      public boolean isPlatformVersion()
      Returns:
      true if the JRE version is a Java platform version (java.specification.version property) or false if it is a product version (java.version property).
    • getVendor

      public String getVendor()
    • getLocation

      public URL getLocation()
      Returns:
      the JRE version string.
    • getMaximumHeapSize

      public String getMaximumHeapSize()
      Returns:
      the maximum heap size in bytes.
    • getInitialHeapSize

      public String getInitialHeapSize()
      Returns:
      the initial heap size in bytes.
    • getResourcesDesc

      public List<ResourcesDesc> getResourcesDesc()
      Returns:
      the resources defined for this JRE.
    • isRequire32Bit

      public boolean isRequire32Bit()
    • getAllVmArgs

      public List<String> getAllVmArgs()
      Returns:
      a list of vm arguments which can be passed to a new java process.