jtopenlite.com.ibm.jtopenlite.command.package-info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400-jdk9 Show documentation
Show all versions of jt400-jdk9 Show documentation
The Open Source version of the IBM Toolbox for Java
/**
* Provides classes to call commands on an IBM i host.
*
*
* The {@link com.ibm.jtopenlite.command.CommandConnection } class is used to establish
* a connection to the command server. The following is a simple example of a program to
* call a command on the server.
*
*
import com.ibm.jtopenlite.command.*;
public class CallCommand {
public static void main(String args[]) {
try {
String system = args[0];
String userid = args[1];
String password = args[2];
String command = args[3];
CommandConnection connection = CommandConnection.getConnection(
system, userid, password);
CommandResult result = connection.execute(command);
System.out.println(result);
} catch (Exception e) {
e.printStackTrace();
}
}
}
*/
package com.ibm.jtopenlite.command;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy