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 › import java.util.regex.*
Page Index Toggle Pages: 1
import java.util.regex.* (Read 725 times)
import java.util.regex.*
Mar 30th, 2008, 3:20am
 
I need to include regular expressions to a Processing sketch, but I can't find the correspondig .jar file, so whenever I put "import java.util.regex.*;" in the sketch, it says it can't find the library.

Does anyone know where to get it?

I'm also using the java.mail.* library, which I found somewhere (can't remember where), and I thought the regex.jar file would be included in my java directory, but it isn't.

A little help?

Thanks
Re: import java.util.regex.*
Reply #1 - Mar 30th, 2008, 6:26am
 
Mine works. But if you're using some old java installation, in the past i was using some thing that ended with regexp that i downloaded from somewhere, possibly apache, and just stuck that into the classpath. In eclipse, you can just add it as a 3rd party library to be included with the project. For processing the howto for creating a library is in the library directory.

Re: import java.util.regex.*
Reply #2 - Mar 30th, 2008, 11:44am
 
As far as I can tell you shouldn't need to add ant jar files, since java.util.regex.* is part of the java 1.4 base.
Re: import java.util.regex.*
Reply #3 - Apr 4th, 2008, 7:26pm
 
I was recently experimenting with import javax.media.opengl.glu.*;

it worked fine for basic things like gluCylinder or gluSphere but when I tried to use curvs or nurbs for example:

GLUnurbs nurbtest = glu.gluNewNurbsRenderer();

it tells me GLUnurbs was not found.

Does it not work in processing, is something missing or am i doing something wrong?
Re: import java.util.regex.*
Reply #4 - Apr 4th, 2008, 8:00pm
 
Processing uses JOGL 1.0.0 and GLUnurbs only came in with 1.1 I think.
Re: import java.util.regex.*
Reply #5 - Apr 4th, 2008, 8:39pm
 
okay thank you. this explains many issues I had.
Page Index Toggle Pages: 1