All Packages Class Hierarchy This Package Previous Next Index
Class utilities.RunJavaApplication
java.lang.Object
|
+----utilities.RunJavaApplication
- public class RunJavaApplication
- extends Object
RunJavaApplication demonstrates the use of com.ibm.as400.access.JavaApplicationCall.
It gathers information from the user about the class to run, then uses a
JavaApplicationCall object to run the program on the AS/400's JVM. It
uses the capabilities of JavaApplicationCall to send input to the Java
program and displays output the Java program writes to standard out and
standard error.
RunJavaApplication has three command line parameters. All parameters are optional.
system - the name of the AS/400.
userid - run the Java program under this userid.
password - the password of the user.
Once started, four commands can be run:
- set - set options to define the JVM environment on the AS/400.
- java - run a Java application on AS/400.
- help - display help.
- quit - end the application.
You can set the following options via the set command. For more information
on each option display the on-line help for the Java command on the AS/400.
- Classpath - the CLASSPATH environment variable on the AS/400.
- DefaultPort - the default port for communicating standard in, standard out
and standard error between the client and the AS/400 Java program.
- FindPort - Indicates to search for a port if the specified port is in use
- Interpret - Indicates if all Java class files should be run interpretively.
- Optimize - Optimization level of the AS/400 Java classes that are not already optimized.
- Options - Options to pass to the AS/400's JVM.
- SecurityCheckLevel - The level of warnings for writable directories in CLASSPATH.
- GarbageCollectionFrequency - The relative frequency that garbage collection runs.
- GarbageCollectionInitialSize - The initial size, in kilobytes, of the garbage collection heap.
- GarbageCollectionMaximumSize - The maximum size, in kilobytes, that the garbage collection heap can grow to.
- GarbageCollectionPriority - The priority of the tasks running garbage collection.
The format of the java command is:
java [-classpath=] [-verbose] [-D= [...]] class [ [...]]
-
RunJavaApplication()
-
-
getInputBuffer()
- Returns input buffer.
-
main(String[])
- Runs Java programs on the AS/400's JVM.
RunJavaApplication
public RunJavaApplication()
main
public static void main(String parameters[])
- Runs Java programs on the AS/400's JVM.
- Parameters:
- parameters - The command line parameters. See the prolog
of this class for information on the command line parameters.
getInputBuffer
protected static Vector getInputBuffer()
- Returns input buffer.
- Returns:
- The input buffer used by command line input.
All Packages Class Hierarchy This Package Previous Next Index