public class J2SEPlatformCreator extends Object
Modifier and Type | Method and Description |
---|---|
static JavaPlatform |
createJ2SEPlatform(FileObject installFolder)
Create a new J2SE platform definition.
|
static JavaPlatform |
createJ2SEPlatform(FileObject installFolder,
String platformName)
Create a new J2SE platform definition with given display name.
|
@NonNull public static JavaPlatform createJ2SEPlatform(@NonNull FileObject installFolder) throws IOException
installFolder
- the installation folder of the JDKIOException
- if the platform was invalid or its definition could not be stored@NonNull public static JavaPlatform createJ2SEPlatform(@NonNull FileObject installFolder, @NonNull String platformName) throws IOException, IllegalArgumentException
installFolder
- the installation folder of the JDKplatformName
- the desired display nameIOException
- if the platform was invalid or its definition could not be storedIllegalArgumentException
- if a platform of given display name already exists