public class AS400ToolboxInstaller
extends java.lang.Object
The AS400ToolboxInstaller class can be included in the user's program, or it can be run as a command line program, as follows:
java utilities.AS400ToolboxInstaller [ options ]
-install
-uninstall
-compare
-package
package1[,package2[, ...]]
-source
sourceURL
-target
targetDirectory
-prompt
-?
-help
Install Example
The following example will install all packages.
java AS400ToolboxInstaller -install -source http://myAS400/QIBM/ProdData/HTTP/Public/jt400/ -target c:\java\
The following examples will install the access package.
java AS400ToolboxInstaller -install -package ACCESS -source http://myAS400/QIBM/ProdData/HTTP/Public/jt400/ -target c:\java\ java AS400ToolboxInstaller -install -package ACCESS -source mySystem -target c:\java\ java AS400ToolboxInstaller -i -p ACCESS -s mySystem -t c:\java\
Uninstall Example
This example will remove the access package.
java AS400ToolboxInstaller -uninstall -package ACCESS -target c:\java\
Compare Example
This example will compare the current level of the OPNAV package.
java AS400ToolboxInstaller -compare -package OPNAV -source http://myAS400/QIBM/ProdData/HTTP/Public/jt400/ -target c:\java\
Help Example
The following will display help information:
java AS400ToolboxInstaller -?
java AS400ToolboxInstaller -help
java AS400ToolboxInstaller -h
Modifier and Type | Method and Description |
---|---|
static java.util.Vector |
getClasspathAdditions()
Deprecated.
Returns the set of paths that should be added to the CLASSPATH as a
result of the latest install or uninstall operation.
|
static java.util.Vector |
getClasspathRemovals()
Deprecated.
Returns the set of paths that should be removed from the CLASSPATH as a
result of the latest install or uninstall operation.
|
static java.util.Vector |
getUnexpandedFiles()
Deprecated.
Returns the set of files that should be expanded as a
result of the latest install or uninstall operation.
|
static boolean |
install(java.lang.String packageName,
java.lang.String targetPath,
java.net.URL source)
Deprecated.
Installs/updates an IBM Toolbox for Java package.
|
static boolean |
isInstalled(java.lang.String packageName,
java.lang.String targetPath)
Deprecated.
Indicates if the package is installed.
|
static boolean |
isUpdateNeeded(java.lang.String packageName,
java.lang.String targetPath,
java.net.URL source)
Deprecated.
Returns whether the package is downlevel.
|
static void |
main(java.lang.String[] args)
Deprecated.
Performs the actions specified in the invocation arguments.
|
static java.util.Vector |
unInstall(java.lang.String packageName,
java.lang.String targetPath)
Deprecated.
Removes a package from the target.
|
public static java.util.Vector getClasspathAdditions()
public static java.util.Vector getClasspathRemovals()
public static java.util.Vector getUnexpandedFiles()
public static boolean install(java.lang.String packageName, java.lang.String targetPath, java.net.URL source) throws java.io.IOException
URL sourceURL = new URL("http://myAS400/QIBM/ProdData/HTTP/Public/jt400/"); AS400ToolboxInstaller.install("ACCESS", "C:\\java\\", sourceURL);
packageName
- The package which to install.
"*ALL" can be used to install all the IBM
Toolbox for Java packages.targetPath
- The path in which to install. The directory will be
created if it does not exist.source
- The URL which contains the location which contains the
current package. File names will be appended
to this location, so a trailing path separator
is required.java.io.IOException
- If an error occurs while communicating with the system.public static boolean isInstalled(java.lang.String packageName, java.lang.String targetPath)
AS400ToolboxInstaller.isInstalled("ACCESS", "C:\\java\\");
packageName
- The package which will be checked.
Note that *ALL is not supported.targetPath
- The path in which the package is installed.public static boolean isUpdateNeeded(java.lang.String packageName, java.lang.String targetPath, java.net.URL source) throws java.io.IOException
URL sourceURL = new URL("http://myAS400/QIBM/ProdData/HTTP/Public/jt400/"); AS400ToolboxInstaller.isUpdateNeeded("ACCESS", "C:\\java\\", sourceURL);
packageName
- The package which will be checked.
"*ALL" can be used to check all the IBM
Toolbox for Java packages.targetPath
- The path in which the package is installed.source
- The URL which contains the location which contains the
current package. File names will be appended
to this location, so a trailing path separator
is required.java.io.IOException
- If an error occurs while communicating with the system.public static void main(java.lang.String[] args)
args
- The command line arguments.public static java.util.Vector unInstall(java.lang.String packageName, java.lang.String targetPath) throws java.io.IOException
AS400ToolboxInstaller.unInstall("ACCESS", "C:\\java\\");
packageName
- The package to remove.
"*ALL" can be used to remove all the IBM
Toolbox for Java packages.targetPath
- The path from which to remove the package.java.io.IOException
- If the package is not installed.