We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm writting a non metric mds, and I find a mds.jar that I can use. How can I import it into my sketch so I can use it?
I've tried sketch->import library->add library, it seems that it can only add the libraries it supplies. Then I tried add file, and "import [path of the jar]", all seem like not the right way.
Answers
Is there any one knows how?
working with P5??? - create a "code" folder and put the .jar inside it. with eclipse right click, properties, java build path, add external jar
Thanks, but is there any way to import it into processing 2.X, not using eclipse?
@happybunny:: yes, i have told you:: p5, create a folder named "code" (inside your sketch folder, like "data") and put the jar inside...
OK....Could you explain more? I did that but still can't use it...
You know where it says data? Make a folder called code, and put that jar in it. Make sure you imported that library in your sketch.
import (name of your library);
data is the folder that I save my code like .pde files right? I tried but it seems not right Then I changed the folder 'code' into 'libraries', still doesn't work...
Make the folder code NEXT to the data folder, not in it. Try that.
Well, seems like you need to install the library.
Go to "Documents" folder in your computer Find "Processing" Scroll until you find a folder called "libraries" If you don't see one, (which I doubt) create one called "libraries" no capitals just like that. Then put your jar into it.
Try that if the code folder doesn't work.
yes I tried both, but still doesn't work...
OK I got it! http://www.learningprocessing.com/tutorials/libraries/ It need to be mdsj.*, not mdsj.jar. lots of thanks!
Oh okay, glad you figured it out!
folder code inside your sketch folder, near the data folder, at the same level...
Cool to know dude.
Simplest way is to just drop the jar file (from Explorer or equivalent) into the PDE, the code folder will be created automatically.
yes, but you can create it!!!
@PhiLho thanks for bringing that out.