Chronomotion Compile Guide

From apertus wiki
Revision as of 08:18, 19 October 2012 by Sebastian (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1 Introduction

Guide how to compile from source. Chronomotion is written in Java and therefore platform independent. But it requires a Java Virtual Machine(JVM) to run in which is available as Java Runtime Environment (JRE). It also requires the external library for serial communication (rxtx).

2 Requirements

3 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.