Using The Java Native Interface
In this tutorial we illustrate how the Java Native Interface (JNI) can be used to permit Java programs to communicate with C programs. We begin by compiling the Java program and the C program at the command prompt (i.e. outside of Eclipse) using the MinGW gcc compiler. Once the programs are compiled and executing correctly, we show how the programs can be integrated into an Eclipse project using the CDT plugin.
Read more
jSIMPLEBUG: a Swarm tutorial for Java
This tutorial takes the user through the development of a Swarm model using the Java programming language. The model itself is a very simple one, but the application we build step by step around it makes use of a lot of the functionality of Swarm and demonstrates many of Swarm’s features. This Java-based tutorial borrows heavily from an earlier Objective-C-based tutorial by Chris Lanton and the Swarm development team. Indeed, the Java code is pretty much a loose translation of their Objective-C code and portions of the text are theirs as well. There are a number of changes, however, to reflect this tutorial’s focus on using Swarm with Java rather than Objective-C.
Read more