Not according to the article for installing libraries in Processing:
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.
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/”:
+---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!
I had to use a regular import
before being able to use the import static
:
import malcolm.Palette;
import static malcolm.Palette.*;
I’ve updated my “Processing_Jar_Creation” repo to include this extra import
statement already.
And even included the PDE’s “.jar” integration there too: