utilities

Class RunJavaApplication

  • java.lang.Object
    • utilities.RunJavaApplication

  • Deprecated. 
    No longer supported.

    public class RunJavaApplication
    extends java.lang.Object
    Demonstrates the use of JavaApplicationCall. It gathers information from the user about the class to run, then uses a JavaApplicationCall object to run the program on the IBM i system'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 system.
    • 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 system.
    • java - run a Java application on IBM i system.
    • 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 system.

    • Classpath - the CLASSPATH environment variable on the system.
    • DefaultPort - the default port for communicating standard in, standard out and standard error between the client and the server 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 Java classes that are not already optimized.
    • Options - Options to pass to the IBM i system'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=<value>] [-verbose] [-D<property>=<value> [...]] class [<programParameter1> [...]]
     
    • Constructor Summary

      Constructors 
      Constructor and Description
      RunJavaApplication()
      Deprecated. 
       
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected static java.util.Vector getInputBuffer()
      Deprecated. 
      Returns input buffer.
      static void main(java.lang.String[] parameters)
      Deprecated. 
      Runs Java programs on the IBM i system's JVM.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RunJavaApplication

        public RunJavaApplication()
        Deprecated. 
    >
    • Method Detail

      • main

        public static void main(java.lang.String[] parameters)
        Deprecated. 
        Runs Java programs on the IBM i system's JVM.
        Parameters:
        parameters - The command line parameters. See the prolog of this class for information on the command line parameters.
      • getInputBuffer

        protected static java.util.Vector getInputBuffer()
        Deprecated. 
        Returns input buffer.
        Returns:
        The input buffer used by command line input.