Class Boot
java.lang.Object
net.sourceforge.jnlp.runtime.Boot
- All Implemented Interfaces:
PrivilegedAction<Integer>
This is the main entry point for the JNLP client. The main method parses the
command line parameters and loads a JNLP file into the secure runtime
environment. This class is meant to be called from the command line or file
association; to initialize the netx engine from other code invoke the
JNLPRuntime.initialize() method after configuring the runtime.- Version:
- $Revision: 1.21 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static StringfixJnlpProtocol(String param) (package private) static StringgetJnlpFileLocationFromCommandLineArguments(CommandLineOptionsParser commandLineOptionsParser) Fetch the JNLP file location from command line arguments.private ParserSettingsprivate static voidprivate voidprivate URLlocationToUrl(String location) static voidLaunch the JNLP file specified by the command-line arguments.static intmainWithReturnCode(String[] args) Launch the JNLP file specified by the command-line arguments.private static voidrun()The privileged part (jdk1.3 compatibility).private static Integer
-
Field Details
-
LOG
-
name
-
version
-
nameAndVersion
-
miniLicense
- See Also:
-
optionParser
-
-
Constructor Details
-
Boot
public Boot()
-
-
Method Details
-
main
Launch the JNLP file specified by the command-line arguments.- Parameters:
args- launching arguments
-
mainWithReturnCode
Launch the JNLP file specified by the command-line arguments. This method is only public for integration testing. You should not call this method !!- Parameters:
args- launching arguments- Returns:
- the return code. 0 = SUCCESS anything else is an error
-
runMain
-
printHelpMessage
private static void printHelpMessage() -
handleAbout
private static void handleAbout() -
fixJnlpProtocol
-
run
The privileged part (jdk1.3 compatibility).- Specified by:
runin interfacePrivilegedAction<Integer>
-
launch
- Throws:
LaunchException
-
getExtras
-
getParserSettings
-
locationToUrl
- Throws:
LaunchException
-
getJnlpFileLocationFromCommandLineArguments
static String getJnlpFileLocationFromCommandLineArguments(CommandLineOptionsParser commandLineOptionsParser) Fetch the JNLP file location from command line arguments. If theCommandLineOptionsParsercannot parse aCommandLineOptions.JNLPit returns the first command argument.- Returns:
- the file location or null if no file location can be found in the command line arguments.
-