Apertus.Chronomotion Compile Guide

From ElphelWiki
Jump to: navigation, search

Introduction

Guide how to compile from source.

Requirements

Troubleshooting

If you get an error message like:

java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path

that means the external libary could not be loaded.

Add the path to the *.dll to the "VM Options" in the "Run" Tab of your project settings.

Example:

-Djava.library.path="C:\Users\yourusername\Desktop\rxtx-2.1-7-bins-r2\Windows\i368-mingw32;%PATH%"

If you get an error message like:

Can't load IA 32-bit .dll on a AMD 64-bit platform thrown while loading gnu.io.RXTXCommDriver

It means you are trying to run the Software with 64bit java JRE. Since the RXTX library is only available for 32bit you have to install Java 32bit JRE and use it to run the program.