How to include the processing jars (and others) in your Netbeans JAR

How to include the processing core inside your JAR.

By default , upon project build, Netbeans copies all referenced libraries to a /lib/ folder inside the /dist/ folder. That is a bit of a pain, because we now have to distribute a whole lot of .jar files, which is a bit “messy” ..

If you want or need to generate a single executable JAR file that will contain all referenced libraries, here is how to do it : Continue reading “How to include the processing jars (and others) in your Netbeans JAR”


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 “
  2. 2. Add a “Main-Class: your-package.your-main-class” in “
  3. 3. In file put “manifest.file=${build.dir}/classes/”

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 : ,

How to embed resource files in your jars using Netbeans

How to embed various file types as resources in your Netbeans jar files

Following the previous article about libraries jar file packaging on the path to “I want all my original processing features in my IDE“, we are going to detail how to replicate the processing functionality of embedding the contents of the /{SketchPath}/data/ folder in the resulting application.

So, we would like to include resources (images, sound, data, shaders, etc) in our applications so that we don’t need to use file paths and can package these resources in the application’s jar file ? And we would also like to access these resources from our code ? Here is how to do it.. Continue reading “How to embed resource files in your jars using Netbeans”