diff --git a/src/java/run.sh b/src/java/run.sh index 7fc1792..d0c1b46 100755 --- a/src/java/run.sh +++ b/src/java/run.sh @@ -1,5 +1,6 @@ #!/bin/bash make -C ../.. Debug +make Debug make .bin/java/${1}.class LD_LIBRARY_PATH=../../.bin/Debug/lib/ java -Djava.library.path=.bin/Debug -cp .bin/java/ ${1} diff --git a/src/java/sample/efglobe.java b/src/java/sample/efglobe.java new file mode 100755 index 0000000..20d1108 --- /dev/null +++ b/src/java/sample/efglobe.java @@ -0,0 +1,26 @@ + +import pw3270.*; + +public class efglobe +{ + public static void main (String[] args) + { + try + { + terminal host = new terminal(); + + host.connect("tn3270://zos.efglobe.com:telnet",10); + + host.wait_for_ready(10); + + System.out.println("Read: [" + host.get_string_at(14,19,38)+"]"); + + host.disconnect(); + + } + catch( Exception e ) + { + System.err.println(e); + } + } +}; -- libgit2 0.21.2