Processing Libraries : how to work with different versions of the same library

edited September 2018 in Using Processing

Hello, I wanted to know if it is possible to work with the same library, but with different versions, as I'm working with several versions of Processing (mainly the betas, P5 1.5.1, and P5 2.1.1)..

Shall I rename the jar file and append the version in the file name, and give the lib folder the same name ?

Is there any tweak / hack that allows that ?

Thanks in advance

Answers

  • edited January 2015 Answer ✓
    • There's a master config file inside every Processing's "lib/" installation subfolder!
    • In P1 and at least up to P2.0.3, it's called "preferences.txt". While later versions "defaults.txt".
    • Inside that file, an entry called settings.path=, which determines where user's "preferences.txt" goes to.
    • In Linux for example I can set it as: settings.path=/home/goto/P1.
    • Then it yields: "/home/goto/P1/preferences.txt". \m/
    • W/ an independent version user "preferences.txt", we can choose a diff. "sketchbook" for it! :-bd
  • You can also drop the jar file of the library on your sketch. It will put it in a code folder.

Sign In or Register to comment.