The package "processing.net" does not exist...
in
Core Library Questions
•
1 year ago
Short form:
Attempting to run a simple program fails during compilation with:
The package "processing.net" does not exist. You might be missing a library.As of release 1.0, libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder.
What am I missing?
Some details:
I have a simple ReaderThread class to slurp text from a Client, which starts out like this:
- // file: ReaderThread.java
- import processing.core.*;
- import processing.net.*;
- class ReaderThread implements Runnable {
- PApplet _parent;
- Listener _listener;
- Thread _thread;
- Client _client;
- static String HOST = "localhost";
- static int PORT = 5204;
- static char EOL = '\n';
- ReaderThread(PApplet parent, Listener listener) {
- _parent = parent;
- _listener = listener;
- _client = new Client(_parent, HOST, PORT);
- new Thread(this).start();
- }
- ...
Attempting to run this fails during compilation the message given at the top of this post. So I'm pretty sure I'm missing the processing.net library. But doesn't it get included in a standard processing download? If not, where do I download it from, and where do I install it?
FWIW:
- I'm running v1.5.1 on MacOS v10.6.8
- ReaderThread is a .java file rather than a .pde since I'm using Interfaces.
1