Commit cabab1ef0f28010ae5d6de84df39b677c04a13a3
1 parent
66767534
Exists in
master
and in
5 other branches
Incluindo exemplo java
Showing
2 changed files
with
27 additions
and
0 deletions
Show diff stats
src/java/run.sh
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | make -C ../.. Debug | 2 | make -C ../.. Debug |
3 | +make Debug | ||
3 | make .bin/java/${1}.class | 4 | make .bin/java/${1}.class |
4 | 5 | ||
5 | LD_LIBRARY_PATH=../../.bin/Debug/lib/ java -Djava.library.path=.bin/Debug -cp .bin/java/ ${1} | 6 | LD_LIBRARY_PATH=../../.bin/Debug/lib/ java -Djava.library.path=.bin/Debug -cp .bin/java/ ${1} |
@@ -0,0 +1,26 @@ | @@ -0,0 +1,26 @@ | ||
1 | + | ||
2 | +import pw3270.*; | ||
3 | + | ||
4 | +public class efglobe | ||
5 | +{ | ||
6 | + public static void main (String[] args) | ||
7 | + { | ||
8 | + try | ||
9 | + { | ||
10 | + terminal host = new terminal(); | ||
11 | + | ||
12 | + host.connect("tn3270://zos.efglobe.com:telnet",10); | ||
13 | + | ||
14 | + host.wait_for_ready(10); | ||
15 | + | ||
16 | + System.out.println("Read: [" + host.get_string_at(14,19,38)+"]"); | ||
17 | + | ||
18 | + host.disconnect(); | ||
19 | + | ||
20 | + } | ||
21 | + catch( Exception e ) | ||
22 | + { | ||
23 | + System.err.println(e); | ||
24 | + } | ||
25 | + } | ||
26 | +}; |