Processing can't find the Network.jar
in
Core Library Questions
•
1 year ago
Hello people,
I need your help!!
I would like to do some easy data-transfer using the Network-Library which should be allready integrated in my Processing-folder when I download it.
But when I copy the following snippet from the reference and I try to run it, I get this error:
"The constructor Client(Client, String, int) is undefined"
and
"(C:\Users\User\Desktop\User\Kreativ\Folder\processing-1.5-windows\processing-1.5\modes\java\libraries\net\library\Network.jar (Can't find the file))"
There is no Network.jar indeed in the library-folder.
But the funfact is that if I don't save my sketch (in the Documents-folder) the programm runs without the two errors above. I don't have a clue why.
I am using Windows 7 64 bit.
I tried the same thing with processing 1.5.1 and 2.0a4, but I allways get the same errors.
Here's the code:
I need your help!!
I would like to do some easy data-transfer using the Network-Library which should be allready integrated in my Processing-folder when I download it.
But when I copy the following snippet from the reference and I try to run it, I get this error:
"The constructor Client(Client, String, int) is undefined"
and
"(C:\Users\User\Desktop\User\Kreativ\Folder\processing-1.5-windows\processing-1.5\modes\java\libraries\net\library\Network.jar (Can't find the file))"
There is no Network.jar indeed in the library-folder.
But the funfact is that if I don't save my sketch (in the Documents-folder) the programm runs without the two errors above. I don't have a clue why.
I am using Windows 7 64 bit.
I tried the same thing with processing 1.5.1 and 2.0a4, but I allways get the same errors.
Here's the code:
-
import processing.net.*;
-
Client myClient;
-
int dataIn;
-
void setup() {
-
size(200, 200);
-
// Connect to the local machine at port 5204.
-
// This example will not run if you haven't
-
// previously started a server on this port
-
myClient = new Client(this, "127.0.0.1", 5204);
-
}
-
void draw() {
-
if (myClient.available() > 0) {
-
dataIn = myClient.read();
-
}
-
background(dataIn);
-
}
Could you please help me :)
Kraabumm
1