Package org.ka2ddo.yaac.bootstrap
Class YAACBootstrap
java.lang.Object
org.ka2ddo.yaac.bootstrap.YAACBootstrap
This is the bootstrap program for the YAAC program. It accepts the
command line arguments to pass to the real YAAC program after it
figures out the host operating system.
Only usable on standard JRE environments where the AWT and Swing packages
are available.
- Author:
- Andrew Pavlin, KA2DDO
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
findJSSCLibrary
(String javaClassPath) Search for the JSSC library jar to put on the class path if it is not already there.static String
findYAACBaseDir
(Class<?> yaacBootstrapClass) Find the base directory for the YAAC installation for a given starting class.static File
Get the base directory of the YAAC installation.static URL
Get the URL pointing to where the located JSSC library is stored.static String
Get the name of the host operating system.static void
Launch the YAAC program's bootstrap.
-
Field Details
-
WINDOWS
Symbolic name for Microsoft Windows operating systems, associated with OSNAME key in properties table.- See Also:
-
-
Method Details
-
main
Launch the YAAC program's bootstrap.- Parameters:
args
- String array of command-line argument tokens- Throws:
Exception
- if YAAC could not be invoked for any reason
-
findYAACBaseDir
Find the base directory for the YAAC installation for a given starting class.- Parameters:
yaacBootstrapClass
- Class to locate on the classpath- Returns:
- the classpath String for the running instance of YAAC
-
findJSSCLibrary
Search for the JSSC library jar to put on the class path if it is not already there.- Parameters:
javaClassPath
- String of classpath before looking for JSSC
-
getBaseDir
Get the base directory of the YAAC installation.- Returns:
- File of the base directory, or null if the base directory hasn't been found yet
-
getJsscURL
Get the URL pointing to where the located JSSC library is stored.- Returns:
- URL of JSSC JAR file
-
getOsName
Get the name of the host operating system.- Returns:
- String name of operating system, as optimized for known supported O/Ss
-