j3270

A Java Wrapper for x3270 (IBM 3270 terminal emulator) based on py3270.
It is a Java API for x3270 (Linux) or s3270 (Windows) subprocess.
Compiling
git clone [email protected]:filipesimoes/j3270.git
cd j3270
mvn clean install
Usage
It is necessary to have installed and in your path x3270 emulator.
try (Emulator emulator = new Emulator()) {
emulator.start();
emulator.connect("3270host.example.com");
emulator.waitField(10);
emulator.fillField(17, 23, "mylogin");
emulator.fillField(18, 23, "mypass");
emulator.sendEnter();
emulator.waitField(10);
emulator.disconnect();
}
If you need more details, read Emulator class.