Skip to content

How to use j2mod

Steve O'Hara edited this page Mar 28, 2016 · 4 revisions

Installation

j2mod is available from Maven Central and can be installed using the following POM xml

<dependency>
    <groupId>com.ghgande</groupId>
    <artifactId>j2mod</artifactId>
    <version>2.0-rc1</version>
</dependency>

The RxTxComm library dependency has been removed and replaced with jSerialComm. This means that there is no longer any separate native installation procedures or hokey command line mucking to be done. The jSerialComm library comes with a lot of native implementations packaged in the jar and will install the correct one for your platform on first usage.

The v2.0 library also has a dependency on log4j.

Compatibility with v1.06 and jamod

For the most part, this should be a drop-in replacement for j2mod 1.06, the same constructs will also be evident of jamod with the obvious change in packaging.

However, one casualty is the Serial BIN transport. This is a proprietary protocol that I couldn't find used out in the wild so it is retired.

Clone this wiki locally