588 lines
23 KiB
HTML
588 lines
23 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc on Tue Sep 16 10:42:46 CDT 2003 -->
|
|
<TITLE>
|
|
AS400ToolboxInstaller
|
|
</TITLE>
|
|
<META NAME="keywords" CONTENT="utilities.AS400ToolboxInstaller,AS400ToolboxInstaller class">
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
|
|
</HEAD>
|
|
<SCRIPT>
|
|
function asd()
|
|
{
|
|
parent.document.title="AS400ToolboxInstaller";
|
|
}
|
|
</SCRIPT>
|
|
<BODY BGCOLOR="white" onload="asd();">
|
|
|
|
<!-- ========== START OF NAVBAR ========== -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
|
<TR>
|
|
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../utilities/AboutToolbox.html"><B>PREV CLASS</B></A>
|
|
<A HREF="../utilities/AS400ToolboxJarMaker.html"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A>
|
|
<A HREF="AS400ToolboxInstaller.html" TARGET="_top"><B>NO FRAMES</B></A>
|
|
|
|
<SCRIPT>
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<!-- =========== END OF NAVBAR =========== -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
utilities</FONT>
|
|
<BR>
|
|
Class AS400ToolboxInstaller</H2>
|
|
<PRE>
|
|
java.lang.Object
|
|
|
|
|
+--<B>utilities.AS400ToolboxInstaller</B>
|
|
</PRE>
|
|
<HR>
|
|
<DL>
|
|
<DT>public class <B>AS400ToolboxInstaller</B><DT>extends java.lang.Object</DL>
|
|
|
|
<P>
|
|
<p>The AS400ToolboxInstaller class is used to
|
|
install, update, compare, and uninstall the AS/400 Toolbox for Java
|
|
packages. Note that this class writes to the local file system,
|
|
so it may fail if used in an applet.
|
|
|
|
<p>The AS400ToolboxInstaller class can be included in the user's program,
|
|
or it can be run as a command line program, as follows:
|
|
<blockquote>
|
|
<pre>
|
|
<strong>java utilities.AS400ToolboxInstaller</strong> [ options ]
|
|
</pre>
|
|
</blockquote>
|
|
|
|
<p>
|
|
<b><a name="inoptions">Options</a></b>
|
|
|
|
<p>
|
|
<dl>
|
|
<dt><b><code>-install</code></b>
|
|
<dd>Indicates that the specified packages are to be installed.
|
|
If the -package option is not specified, all packages will be installed.
|
|
The source and target options must be specified when using this option.
|
|
The -install option may be abbreviated to -i.
|
|
|
|
<dt><b><code>-uninstall</code></b>
|
|
<dd>Indicates that the specified packages are to be removed.
|
|
The package and target options must be specified when using this option.
|
|
The -uninstall option may be abbreviated to -u.
|
|
|
|
<dt><b><code>-compare</code></b>
|
|
<dd>Indicates that the source package with be compared with the
|
|
target package to determine if
|
|
an update is needed. The package, source, and target options must
|
|
be specified when using this option.
|
|
The -compare option may be abbreviated to -c.
|
|
|
|
|
|
<dt><b><code>-package</code></b> <var>package1[,package2[, ...]]</var>
|
|
<dd>Specifies the package to install, compare, or uninstall.
|
|
If -package is specified, at
|
|
least one package name must be specified.
|
|
The -package option may be abbreviated to -p.
|
|
|
|
|
|
<dt><b><code>-source</code></b> <var>sourceURL</var>
|
|
<dd>Specifies the location of the source files. The HTTP server is used
|
|
to access the files. The system name or the fully-qualified URL
|
|
may be specified. If the system name is specified, it will automatically
|
|
be converted to the URL where the licensed program installed the files.
|
|
For example, if mySystem is specified, http://mySystem/QIBM/ProdData/HTTP/Public/jt400/
|
|
will be used.
|
|
The -source option may be abbreviated to -s.
|
|
|
|
<dt><b><code>-target</code></b> <var>targetDirectory</var>
|
|
<dd>Specifies the fully-qualified path name of where to store the files.
|
|
The -target option may be abbreviated to -t.
|
|
|
|
<dt><b><code>-prompt</code></b>
|
|
<dd>Specifies that the user will be prompted before updating the packages on
|
|
the workstation. If not specified, the packages will be updated.
|
|
The -prompt option may be abbreviated to -pr.
|
|
|
|
<dt><b><code>-?</code></b>
|
|
<dd>Displays the help text.
|
|
|
|
<dt><b><code>-help</code></b>
|
|
<dd>Displays the help text.
|
|
The -help parameter may be abbreviated to -h.
|
|
</dl>
|
|
|
|
<a name="InstallEx"> </a>
|
|
<p><strong>Install Example</strong></p>
|
|
<p>The following example will install all packages.
|
|
<ul>
|
|
<pre>
|
|
java AS400ToolboxInstaller -install
|
|
-source http://myAS400/QIBM/ProdData/HTTP/Public/jt400/
|
|
-target c:\java\
|
|
|
|
</pre>
|
|
</UL>
|
|
<p>The following examples will install the access package.
|
|
<ul>
|
|
<pre>
|
|
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\
|
|
</pre>
|
|
</UL>
|
|
|
|
|
|
<p><strong>Uninstall Example</strong></p>
|
|
<p>This example will remove the access package.
|
|
<ul>
|
|
<pre>
|
|
java AS400ToolboxInstaller -uninstall -package ACCESS -target c:\java\
|
|
</pre>
|
|
</UL>
|
|
|
|
|
|
<a name="CompareEx"> </a>
|
|
<p><strong>Compare Example</strong></p>
|
|
<p>This example will compare the current level of the OPNAV package.
|
|
<ul>
|
|
<pre>
|
|
java AS400ToolboxInstaller -compare
|
|
-package OPNAV
|
|
-source http://myAS400/QIBM/ProdData/HTTP/Public/jt400/
|
|
-target c:\java\
|
|
</pre>
|
|
</ul>
|
|
|
|
<p><strong>Help Example</strong></p>
|
|
<P>The following will display help information:
|
|
<UL>
|
|
java AS400ToolboxInstaller -? <br>
|
|
java AS400ToolboxInstaller -help <br>
|
|
java AS400ToolboxInstaller -h
|
|
</UL>
|
|
<P>
|
|
|
|
<P>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
|
|
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN=2><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static java.util.Vector</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../utilities/AS400ToolboxInstaller.html#getClasspathAdditions()">getClasspathAdditions</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the set of paths that should be added to the CLASSPATH as a
|
|
result of the latest install or uninstall operation. </TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static java.util.Vector</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../utilities/AS400ToolboxInstaller.html#getClasspathRemovals()">getClasspathRemovals</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the set of paths that should be removed from the CLASSPATH as a
|
|
result of the latest install or uninstall operation.
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static java.util.Vector</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../utilities/AS400ToolboxInstaller.html#getUnexpandedFiles()">getUnexpandedFiles</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the set of files that should be expanded as a
|
|
result of the latest install or uninstall operation.
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../utilities/AS400ToolboxInstaller.html#install(java.lang.String, java.lang.String, java.net.URL)">install</A></B>(java.lang.String packageName,
|
|
java.lang.String targetPath,
|
|
java.net.URL source)</CODE>
|
|
|
|
<BR>
|
|
Installs/updates an AS/400 Toolbox for Java package.
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../utilities/AS400ToolboxInstaller.html#isInstalled(java.lang.String, java.lang.String)">isInstalled</A></B>(java.lang.String packageName,
|
|
java.lang.String targetPath)</CODE>
|
|
|
|
<BR>
|
|
Indicates if the package is installed. </TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../utilities/AS400ToolboxInstaller.html#isUpdateNeeded(java.lang.String, java.lang.String, java.net.URL)">isUpdateNeeded</A></B>(java.lang.String packageName,
|
|
java.lang.String targetPath,
|
|
java.net.URL source)</CODE>
|
|
|
|
<BR>
|
|
Returns whether the package is downlevel. </TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../utilities/AS400ToolboxInstaller.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE>
|
|
|
|
<BR>
|
|
Performs the actions specified in the invocation arguments. </TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static java.util.Vector</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../utilities/AS400ToolboxInstaller.html#unInstall(java.lang.String, java.lang.String)">unInstall</A></B>(java.lang.String packageName,
|
|
java.lang.String targetPath)</CODE>
|
|
|
|
<BR>
|
|
Removes a package from the target. </TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TD><B>Methods inherited from class java.lang.Object</B></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN=1><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="getClasspathAdditions()"><!-- --></A><H3>
|
|
getClasspathAdditions</H3>
|
|
<PRE>
|
|
public static java.util.Vector <B>getClasspathAdditions</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the set of paths that should be added to the CLASSPATH as a
|
|
result of the latest install or uninstall operation. The returned
|
|
vector will always be empty after an uninstall.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The vector of Strings which contain the paths that should be
|
|
added to the CLASSPATH
|
|
as a result of the latest install or uninstall operation.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getClasspathRemovals()"><!-- --></A><H3>
|
|
getClasspathRemovals</H3>
|
|
<PRE>
|
|
public static java.util.Vector <B>getClasspathRemovals</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the set of paths that should be removed from the CLASSPATH as a
|
|
result of the latest install or uninstall operation.
|
|
<br><u>Note:</u>
|
|
Removing directories from the classpath may cause Java programs
|
|
to fail if the directory contains code required by the Java program.
|
|
Extraneous directories in the CLASSPATH
|
|
do no harm. Therefore, you may not wish to remove any CLASSPATH
|
|
entries, or remove only directories which do not contain any Java
|
|
code.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The vector of Strings which contain the paths that should be
|
|
removed from the CLASSPATH
|
|
as a result of the latest install or uninstall operation.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getUnexpandedFiles()"><!-- --></A><H3>
|
|
getUnexpandedFiles</H3>
|
|
<PRE>
|
|
public static java.util.Vector <B>getUnexpandedFiles</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the set of files that should be expanded as a
|
|
result of the latest install or uninstall operation.
|
|
Note that not all *.zip files will be in this list. Only those files
|
|
designated to be expanded by the package will be included. The returned
|
|
vector will always be empty after an uninstall.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The vector of Strings which contain the files that should be
|
|
expanded as a result of the latest install or uninstall operation.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="install(java.lang.String, java.lang.String, java.net.URL)"><!-- --></A><H3>
|
|
install</H3>
|
|
<PRE>
|
|
public static boolean <B>install</B>(java.lang.String packageName,
|
|
java.lang.String targetPath,
|
|
java.net.URL source)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Installs/updates an AS/400 Toolbox for Java package.
|
|
If the package is already installed,
|
|
it will be updated if needed. This method just copies files, it will
|
|
not modify the CLASSPATH, or expand any 'zipped' files.
|
|
<pre>
|
|
URL sourceURL = new URL("http://myAS400/QIBM/ProdData/HTTP/Public/jt400/");
|
|
AS400ToolboxInstaller.install("ACCESS", "C:\\java\\", sourceURL);
|
|
</pre>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>packageName</CODE> - The package which to install.
|
|
"*ALL" can be used to install all the AS/400
|
|
Toolbox for Java packages.<DD><CODE>targetPath</CODE> - The path in which to install. The directory will be
|
|
created if it does not exist.<DD><CODE>source</CODE> - 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.
|
|
<DT><B>Returns:</B><DD>true if an install/update occurred, false if no updates were
|
|
needed.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs while communicating with the server.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isInstalled(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
isInstalled</H3>
|
|
<PRE>
|
|
public static boolean <B>isInstalled</B>(java.lang.String packageName,
|
|
java.lang.String targetPath)</PRE>
|
|
<DL>
|
|
<DD>Indicates if the package is installed. Installation is determined
|
|
by examining the target directory for the *.LVL file. This method
|
|
does not check for a partial installation, if installation is
|
|
incomplete, this method may return true or false.
|
|
<pre>
|
|
AS400ToolboxInstaller.isInstalled("ACCESS", "C:\\java\\");
|
|
</pre>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>packageName</CODE> - The package which will be checked.
|
|
Note that *ALL is not supported.<DD><CODE>targetPath</CODE> - The path in which the package is installed.
|
|
<DT><B>Returns:</B><DD>true if the package has been installed, false if the
|
|
package has not been installed.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isUpdateNeeded(java.lang.String, java.lang.String, java.net.URL)"><!-- --></A><H3>
|
|
isUpdateNeeded</H3>
|
|
<PRE>
|
|
public static boolean <B>isUpdateNeeded</B>(java.lang.String packageName,
|
|
java.lang.String targetPath,
|
|
java.net.URL source)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Returns whether the package is downlevel. This method will return
|
|
true if the package is not installed.
|
|
<pre>
|
|
URL sourceURL = new URL("http://myAS400/QIBM/ProdData/HTTP/Public/jt400/");
|
|
AS400ToolboxInstaller.isUpdateNeeded("ACCESS", "C:\\java\\", sourceURL);
|
|
</pre>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>packageName</CODE> - The package which will be checked.
|
|
"*ALL" can be used to check all the AS/400
|
|
Toolbox for Java packages.<DD><CODE>targetPath</CODE> - The path in which the package is installed.<DD><CODE>source</CODE> - 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.
|
|
<DT><B>Returns:</B><DD>true if an update is needed, false if no updates are
|
|
needed.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If an error occurs while communicating with the server.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
|
|
main</H3>
|
|
<PRE>
|
|
public static void <B>main</B>(java.lang.String[] args)</PRE>
|
|
<DL>
|
|
<DD>Performs the actions specified in the invocation arguments. See
|
|
the class description for information on the command line parameters.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>args</CODE> - The command line arguments.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="unInstall(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
unInstall</H3>
|
|
<PRE>
|
|
public static java.util.Vector <B>unInstall</B>(java.lang.String packageName,
|
|
java.lang.String targetPath)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Removes a package from the target. This method deletes all the files
|
|
in the package, and deletes directories if they are empty.
|
|
It does not modify the CLASSPATH.
|
|
<pre>
|
|
AS400ToolboxInstaller.unInstall("ACCESS", "C:\\java\\");
|
|
</pre>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>packageName</CODE> - The package to remove.
|
|
"*ALL" can be used to remove all the AS/400
|
|
Toolbox for Java packages.<DD><CODE>targetPath</CODE> - The path from which to remove the package.
|
|
<DT><B>Returns:</B><DD>The vector of Strings which contain the names (including path) of
|
|
files and directories which exist but could not be deleted.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - If the package is not installed.</DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
<!-- ========== START OF NAVBAR ========== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
|
<TR>
|
|
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../utilities/AboutToolbox.html"><B>PREV CLASS</B></A>
|
|
<A HREF="../utilities/AS400ToolboxJarMaker.html"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A>
|
|
<A HREF="AS400ToolboxInstaller.html" TARGET="_top"><B>NO FRAMES</B></A>
|
|
|
|
<SCRIPT>
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<!-- =========== END OF NAVBAR =========== -->
|
|
|
|
<HR>
|
|
|
|
</BODY>
|
|
</HTML>
|