We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › hacks:fontoutline library missing
Page Index Toggle Pages: 1
hacks:fontoutline library missing? (Read 1074 times)
hacks:fontoutline library missing?
Dec 10th, 2009, 6:34am
 
Hello everyone,

I am trying to get the FontNoise example (from /hacks/hacks:fontoutline) to run, but it apparently won't go beyond the following line:

Code:
import java.awt.Image.BufferedImage; 


The error message:
Quote:
The package java.awt.Image.BufferedImage does not exist. You might be missing a library.

Code:
Note that release 1.0, libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder. 




I tried installing the Java SE JDK by hand, but it didn't help. Redownloading processing with Java didn't change anything either.

I found a thread (num=1227097701 in the URL) where "guysnape" has a similar problem, but sadly the solution he gives isn't detailed enough for me to try it out. I am not even sure what the difference between the "sketch folder" and the "sketchbook folder" is.

I'm certain the solution is fairly simple, but sadly I lack the expertise. Could someone please be of assistance?

Thanks in advance.

PS: It would be great if users were able to copy the error message to the clipboard for easier searching online, instead of having to type it by hand. Maybe a locked textbox instead of a label to display the errors?

PPS: I had a very nice post with links to screenshots and other relevant topics, but I am not allowed to post links and images yet. Lips Sealed
Re: hacks:fontoutline library missing?
Reply #1 - Dec 10th, 2009, 7:54am
 
its a typo. it has to be image not Image

import java.awt.image.BufferedImage;

Re: hacks:fontoutline library missing?
Reply #2 - Dec 10th, 2009, 1:49pm
 
That was it, it solved the problem. I can't believe I didn't notice it while looking it up in the javadocs.

Thanks, Cedric!
Page Index Toggle Pages: 1