Creating an Executable Processing Sketch within Netbeans.

Processing IDE, though kind of rustic, has the cool ability to generate Mac and PC executables from the current Sketch.

As put more and more work into mastering processing (far from there yet..), I decided to do all the “really serious” coding in Netbeans 6.01, and just use processing as a library or for rapidly prototyping ideas.

Therefore, I miss the “create executable” processing feature that allowed me to distribute all kinds of applications to any platforms.

After a bit of googling, I have found the solution to the problem. It is solved in the following steps : 

  1. 1. In source, “Source Packages”, create a new file called “manifest.mf
  2. 2. Add a “Main-Class: your-package.your-main-class” in “manifest.mf(com.whatever.project.MainApp)
  3. 3. In project.properties file put “manifest.file=${build.dir}/classes/manifest.mf”

I you add that to the “jar-packing” functionality described in my “How to include processing jar in your project’s JAR” blog entry, you could normally create an executable application that contains only one .jar file. Cool !

Delicious tags : ,
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s