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 › Errors with library access
Page Index Toggle Pages: 1
Errors with library access (Read 395 times)
Errors with library access
Jun 13th, 2008, 11:13pm
 
This is probably simple, but I can't figure it out...

When I try to use programs with libraries (for example from http://www.eskimoblood.de/surfacelib/) I get this error:

unexpected token: package

I don't get it, because the files are upzipped in the libraries directory and I did click on 'Sketch' and then 'Import Library'.

So I get for example:
import surface.calculation.*;
import surface.*;
package surface;

But this gives an error... How can I solve this?

Another part of this topic is at: http://processing.org/discourse/yabb_beta/YaBB.cgi?board=OpenGL;action=display;num=1213441361
Re: unexpected token: package
Reply #1 - Jun 14th, 2008, 8:46am
 
Just remove the generated "package" line. If it have been generated by the latest version of Processing, it is a bug that should be reported, I think.

[EDIT] Downloaded and tested 0141, it doesn't do that...
Page Index Toggle Pages: 1