Syphon Implementation for Java
Java Objective-C Shell
Latest commit 9c7a424 Sep 1, 2015 @codeanticode codeanticode removed import

README.md

Java

JSyphon - a Java Native Interface for Syphon. It has been tested with JOGL via Processing, and LWJGL.

Getting Started:

  • After cloning the repository, use git submodule update --init to pull in the Syphon-Framework and Shared repos

  • Update the Syphon-Framework and Shaded submodules:

cd Syphon-Framework/
git pull origin master
cd ../Shared/
git pull origin master
cd ..
git add Syphon-Framework
git add Shared
git commit java -m "Updated Syphon submodules"
  • Build jsyphon.jar, by running ant dist inside the ant folder. The resulting jar file will be placed inside the jar folder.

  • Generate the headers by running the script native_src/gen_headers.sh

  • Compile the XCode project located inside JSyphon/native_src in order to build the native JSyphon JNI libray, named "libJSyphon.jnilib", which includes the Syphon framework, and the JNI code to run in your java app. The compiled "libJSyphon.jnilib" is copied into the "native_libs" folder, where you can then load it in Java using System.load or System.loadLibrary depending on your path setups. We suggest System.loadLibrary.

  • To experiment with the JSyphon examples, we provide an Eclipse project which you can import into your workspace, and experiment with "ServerTest.java" and "ClientTest.java".

Acknowledgments

Initial JSyphon implementation by Skye Book and Anton Marini.

Finishing up implementation of JSyphonClient, server listing, ClientTest example by Andres Colubri.