Package net.sourceforge.jnlp
Class JREDesc
java.lang.Object
net.sourceforge.jnlp.JREDesc
The J2SE/Java element.
-
Constructor Summary
ConstructorsConstructorDescriptionJREDesc
(Version.JreVersion version, URL location, String vmArgs, String initialHeapSize, String maximumHeapSize, List<ResourcesDesc> resources) Create a JRE descriptor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Constructor Details
-
JREDesc
public JREDesc(Version.JreVersion version, 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 nulllocation
- the location of a JRE product or nullvmArgs
- arguments to VMinitialHeapSize
- initial heap sizemaximumHeapSize
- maximum head sizeresources
- list of ResourceDesc objects- Throws:
ParseException
- is something goes wrong
-
-
Method Details
-
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).
-
getLocation
- Returns:
- the JRE version string.
-
getMaximumHeapSize
- Returns:
- the maximum heap size in bytes.
-
getInitialHeapSize
- Returns:
- the initial heap size in bytes.
-
getResourcesDesc
- Returns:
- the resources defined for this JRE.
-
getVMArgs
- Returns:
- the additional arguments to pass to the Java VM Can be null
-