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 & HelpPrograms › data folder, embedded applets
Page Index Toggle Pages: 1
data folder, embedded applets (Read 323 times)
data folder, embedded applets
Mar 1st, 2009, 12:16am
 
my sketch works fine when run form the processing ide, but once exported and run as an applet, i always get the following error:

The file "circle.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.

i've tried every file permutation i could think of. what am i doing wrong?
Re: data folder, embedded applets
Reply #1 - Mar 1st, 2009, 3:54am
 
Try putting the asset in the same folder as your applet, which is the location of the index.html file.
Re: data folder, embedded applets
Reply #2 - Mar 1st, 2009, 11:19am
 
The image must be in the data folder of the sketch. Then Processing will include it when making the jar.
Page Index Toggle Pages: 1