A newer version of Max is available. Click here to access the latest 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 MaxMSP 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
To include Jitter components in your standalone application:
• Copy the file /Program Files/Cycling '74/MaxMSP 4.5/support/jitlib.dll to {standalone folder}/support/jitlib.dll
• Copy the file /Program Files/Cycling '74/MaxMSP 4.5/support/cg.dll to {standalone folder}/support/cg.dll
• Copy the file /Program Files/Cycling '74/MaxMSP 4.5/support/cgGL.dll to {standalone folder}/support/cgGL.dll
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
• Copy the file /Program Files/Cycling '74/MaxMSP 4.5/support/cg.dll to {standalone folder}/support/cg.dll
• Copy the file /Program Files/Cycling '74/MaxMSP 4.5/support/cgGL.dll to {standalone folder}/support/cgGL.dll
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/MaxMSP 4.5/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
To include Jitter components in your standalone application:
• Copy the file /Applications/MaxMSP 4.5/jitlib to {Package}/Contents/MacOS/jitlib
Jitter shader
To include Jitter shader components in your standalone application:
• Copy the file /Library/Application Support/Cycling '74/jitter-externals/Cg.framework to {Package}/Contents/MacOS/support/Cg.framework
• Copy the file /Library/Application Support/Cycling '74/jitter-shaders to {Package}/Contents/MacOS/support/jitter-shaders
Java
To include Java components in your standalone application:
• Copy the file /Library/Application Support/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 /Library/Application Support/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 /Library/Application Support/Cycling '74/jsextensions/ to {Package}/Contents/MacOS/support/jsextensions/