A newer version of Max is available. Click here to access the latest version of the Max documentation

Appendix D: Building Standalone Applications with Jitter

If you want to create a standalone application that uses Jitter, you will need to copy a number of files to your standalone application folder (for Windows applications) or include them in your Macintosh applications package. The appendix describes the files you will need to copy if you intend to include Jitter, Jitter shaders, Java, or Javascript support in your application.

For more information about building standalone applications, see the chapter on Collectives in the Max Tutorials and Topics Manual.

Windows Standalone Format

A standalone application on Windows is actually a folder containing Max Runtime executable plus a .mxf collective file containing your patches and files. In addition, the standalone folder contains a support folder with files necessary to run your application.

Jitter Shader

To include Jitter shader components in your standalone application:

• Copy the file /Program Files/Common Files/Cycling '74/jitter-shaders to {standalone folder}/support/jitter-shaders
Java

To include Java components in your standalone application:

• Copy the file /Program Files/Common Files/Cycling '74/java/lib/max.jar to {standalone folder}/support/java/lib/max.jar
• Copy any other necessary jar files (e.g. jitter.jar) to {standalone folder}/support/java/lib/max.jar
• Copy /Program Files/Common Files/Cycling '74/java/classes/*.class to {standalone folder}/support/java/classes/*.class (all your necessary class files)
Javascript

To include Javascript components in your standalone application:

• Copy the file /Program Files/Cycling '74/Max 6/support/js32mt.dll to {standalone folder}/support/js32mt.dll
• Copy the file /Program Files/Common Files/Cycling '74/jsextensions/ to {standalone folder}/support/jsextensions/

Macintosh Standalone Format

On Macintosh, the standalone is an application package, which is also a folder that looks like a file in the Finder. You can peek into the package by control-clicking on it and choosing Show Package Contents from the contextual menu. As with the Windows standalone, inside the Contents/MacOS folder you will find a .mxf collective, a runtime application, and a support folder.

Jitter shader

To include Jitter shader components in your standalone application:

• Copy the file /Applications/Max6/Cycling '74/jitter-shaders to {Package}/Contents/MacOS/support/jitter-shaders
Java

To include Java components in your standalone application:

• Copy the file /Applications/Max6/Cycling '74/java/lib/max.jar to {Package}/Contents/MacOS/support/java/lib/max.jar
• Copy any other necessary jar files (e.g. jitter.jar) to {Package}/Contents/MacOS/support/java/lib/
• Copy /Applications/Max6/Cycling '74/java/classes/*.class to {Package}/Contents/MacOS/support/java/classes/*.class (all your necessary class files)
Javascript

To include Javascript components in your standalone application:

• Copy the file /Library/CFMSupport/JSRefThreadsafe.shlb to {Package}/Contents/MacOS/JSRefThreadsafe.shlb
• Copy the file /Applications/Max6/Cycling '74/jsextensions/ to {Package}/Contents/MacOS/support/jsextensions/