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.

Once started, four commands can be run:

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.

The format of the java command is:


Constructor Index

 o RunJavaApplication()

Method Index

 o getInputBuffer()
Returns input buffer.
 o main(String[])
Runs Java programs on the AS/400's JVM.

Constructors

 o RunJavaApplication
 public RunJavaApplication()

Methods

 o 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.
 o 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