Pages: 1 [2]   Go Down
Author Topic: Arduino Networked Lamp Processing sketch error.  (Read 6016 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 48993
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but now it can't load the HelveticaNeue-bold font...
Does the font that Processing uses REALLY matter? Have you placed the appropriate font file in the appropriate directory?
Logged

Tennessee in USA
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Physicist, Amateur Astronomer, President of VRX Company Inc
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I was not able to figure out how to fix the font problem so I simply commented out the lines like this:

  //font = loadFont("HelveticaNeue-Bold-32.vlw");
  fill(255);
 // textFont(font, 32);


Then the program ran but produced no results.
The URL from the book is not responding I think.
I changed the URL like this:
String feed = "http://blog.makezine.com/index.html";

I was then getting results .

Thanks for the help above with the java includes. I would never have overcome that problem.
Logged

Tyson: When you're scientifically literate, the world looks different to you.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, i am not very familiar English, sorry for my poor English.
I am now using processing 2.1 for this project and i've revised my code by including java with codes mentioned above:

import processing.serial.*;
import java.net.URL;
import java.net.URLConnection;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

yet, when I tried to run this program, Processing stopped and show error message  "The package "java.io,BufferReader" does not exist. You might be missing a library."

I'm a totally newbie ,I don't know if it is suitable to ask here (this is the only forum I know)
Is there any suggestion where I can download the libraries and how to install it?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 48993
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The error message does not match with the snippet of code you posted. (Buffered != Buffer).
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks! this error is caused by my typo... smiley-sad-blue
Logged

Pages: 1 [2]   Go Up
Jump to: