Including shared pde files across projects

Not according to the article for installing libraries in Processing: :no_entry:

The top folder of a library must have the same name as the .jar file located inside a library’s library folder (minus the .jar extension):

Therefore, we’re free to choose whatever name to the “.jar” file, as long as we use that same name for its top folder. :face_with_monocle:

My “.jar” file was named as: “Palette.jar”. So in order to integrate it to the PDE, I’ve gotta name its top folder inside sketchbook’s “libraries/” folder as “Palette/”: :file_folder:

 +---libraries
|   \---Palette
|       \---library
|               Palette.jar

However, after I’ve completed the “.jar” integration into the PDE, when running the “PaletteJarSketch.pde” w/o the “Palette.jar” inside its subfolder “code/”, the statement import static malcolm.Palette.*; didn’t work! :face_with_head_bandage:

I had to use a regular import before being able to use the import static: :crazy_face:

import malcolm.Palette;
import static malcolm.Palette.*;

I’ve updated my “Processing_Jar_Creation” repo to include this extra import statement already. :smile_cat:

And even included the PDE’s “.jar” integration there too: :sunglasses:

1 Like