Run in pure Java
Processing is great for prototyping, however for larger projects you need structure. This structure can be achieved using pure Java. In this tutorial, we show how to:
- Compile Processing applications in Java using maven.
- Compile and Run PapARt applications in Java with maven.
Here you list the hardware / OS required: e.g.:
- Hardware: any.
- Operating system: Win/OSX/Linux.
- Language: Java
- Time required: 30mins.
- Difficulty: easy.
Processing: all libraries.
Documents Processing ## what sketchbook on linux your sketch folders libraries theLibrary examples library theLibrary.jar reference src
The library stores the jar files that contains the code. In the library, we usually ship the source code, and the javadoc and more importantly all the calibration/configuration files.
Documents Processing ## what sketchbook on linux libraries PapARt data calibration ## cameras, projectors, tracking configs etc... markers ## files for tracking and printing. library PapARt.jar ## (symlinks are supported) pca_transform.jar, jama.jar ## other external jar files. apidocs ## javadoc src
How PapARt finds its data.
When a PapARt application starts, it tries to find the `Processing` folder, then the `PapARt` library. This happens when lauched, from Processing, or from maven.
SKETCHBOOKenvironment variable. You can set it by adding in your
export SKETCHBOOK=$HOME/sketchbookin linux. It works the same in Windows, or OSX.
- If there is no
SKETCHBOOKenvironment variable, it tries to find the
HOMEvariable, then on Windows and OSX the folder
$HOME/Processing/libraries/PapARt/data/, and in Linux
(Worst case) If this also fails, it tries to find a file relative to the jar that contains
In every case you will get feedback in the console :
Papart data path: .... ## or an error: Error in loading the Sketchbook folder. Papart: Cannot find the data folder. It must be installed with the library.
PapARt is designed as a Processing libray and requires to be installed like so. This may become optional, or more configurable in the next release.