Java Example for the ECOM Library

This is a simple exampling that shows how to use the ECOM API/DLL Library in Java.  It relies on the excellent Java Native Access (JNA -https://jna.dev.java.net/) library for making all calls to the ECOM DLL functions.  This implementation should be used as a reference starting point for all applications using Java with the ECOM device. 

Copy the java files below or download a zip of the sample here: Java example.

The equivalent C/C++ example is located here: C/C++ example.

The example shows how to make calls to open an ECOM device, print all received 29-bit CAN packets to the console for 10 seconds, and then close the device.   In order to run the sample you will need to first install the ECOM driver and DLL library.

Tags: 
CANCapture and ECOM Knowledgebase