We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm trying to create a library that uses the core net module, but I'm not sure how to do it properly.
This is the setup I have:
build.propertiesfile, I have a
libs/net.jarit to the build path as an external jar file
The ant build builds fine, but when I try to run it in processing, I get the error
ClassNotFoundException: processing.net.Client, unless I include
import processing.net.Client in my sketch.
I've also noticed that the arduino library does a similar thing with requiring the core
serial module (https://github.com/firmata/processing/blob/master/build.xml#L14), and they also explicitly include
import processing.serial.*; in their examples. Is this the proper way of doing it?
I also dug around a bit and the arduino jar file contains a
Arduino$SerialProxy.class file in the
[Processing lib]/Arduino/cc/arduino folder, which I can't see anywhere in the source code. Is this something I need too?
Another hack to the solution was to put a duplicate of
net.jar inside the
lib (note: not
libs) folder, and the build script builds correctly, and the processing sketch runs it without error, but there are conflicts with the core processing library.