See the Java eample.
NOTE: Currently Processing requires that any JAR file contain only code compiled against JDK 1.6