Adding an external java Library

Im trying to import the library mp3agic and ive gotten to the point where ive used maven to build the .jar file and i have it in the librarys folder like this:
Documents/Processing/Librarys/mp3agic/library
When I used maven it gave me 3 snapshot jar files, one just called snapshot, one called snapshhot-javadoc and one called snapshot-sources, Processing doesn’t see the library as I cant import it with the add library button
Ive also tried to drag and drop the file into processing making a code folder and putting the files in there but when I ìmport mpatric.mp3agic.*I get an error mpatric cannot be resolved

Any help would be great!


Doge

PS: I have been reading this, only the bottom part of the page applies to me and its not very helpful

2 Likes

The path should be …

Documents/Processing/libraries/XXX/library
where XXX is the name of the library jar file without the file ext (.jar), beware this is case-sensitive!!!

Note the spelling of libraries

So you have two choices

  1. Change the library folder to …
    Documents/Processing/libraries/snapshot/library
    this assumes that the library jar is called snapshot.jar
  2. Rename snapshot.jar to mp3ajic.jar and change the library folder to
    Documents/Processing/libraries/mp3ajic/library
2 Likes

Thank you! that did the trick!

Note that you can also just drag the .jar file onto the Processing editor.

1 Like

Could you share the snapshot.jar file, or, even better, the resulting folder directly?