Java driver for USB Relays

This driver aims to provide to the Java ecosystem access to low cost USB relays (such as DctTech devices or the ones available on eBay).

Ā Dependencies


This library has been successfully tested on the following platforms:


Bug in Mac release of HidApi 0.8.0-rc1

A bug in the implementation of the function hid_get_feature_report for the Mac platform is present in the release candidate 0.8.0-rc1 of HidApi. This bug prevents many pieces of software (incl. jUSBRelay) to run properly.

Brew provides a patched-version of HidApi which works properly (since April 8th, 2015).

A patched version of HidApi is available on my github HidApi fork

Copyright (C) 2015 Raphaƫl P. Barazzutti

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.