Coder Social home page Coder Social logo

j3270's People

Contributors

dependabot[bot] avatar filipesimoes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

j3270's Issues

cannot connect wc3270

Dear Sir

I have installed WC3270 at Windows 10, but I can't use J3270 to operate. I want to ask if I need to know what the installation department is?
In addition, I would like to ask how the Emulator category knows the current WC3270 thread or port?
I have set the path to add a path in the environment variable, for example
PATH = C: \ Program Files \ WC3270 \ S3270.EXE

The following is my code
public class dom2j {

 Public Static Void Main (String [] args) {{
     try (emulator emulator = new emulator ()) {{) {
         emulator.start ();
         emulator.connect ("10.24.200.3");
         emulator.waitfield (10);

         emulator.fillfield (17, 23, "PACC");
         Emulator.sendenter ();

         emulator.waitfield (10);
         emulator.disconnect ();
     } Catch (Exception E) {{
         e.printstacktrace ();
     }
 }

}

Create unit tests

Create unit testes for all Command classes.
Probably won't be necessary to mock anything. Just create appropriate writers and readers with the test data.

Emulator start timed out.

Using the code and see issue while starting Emulator as following:

java.util.concurrent.TimeoutException: Emulator start timed out.
at com.github.filipesimoes.j3270.Emulator.waitForEmulator(Emulator.java:67)
at com.github.filipesimoes.j3270.Emulator.start(Emulator.java:53)
at com.broadridge.emulator.MainFrame.main(MainFrame.java:20)

Code:

try (Emulator emulator = new Emulator()) {
emulator.setVisible(true);
emulator.setNvt(true);
emulator.start();

        emulator.waitField(10);
        emulator.disconnect();
    } catch (IOException | TimeoutException e) {
        e.printStackTrace();
    }

Can you please help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.