Using apache StringUtils and DbUtils
Hi all!
I can't seem to be able to use the org.apache.commons.dbutils and org.apache.commons.lang classes.
I downloaded the commons-dbutils-1.1.jar and the commons-lang-2.3.jar files and put them into the project folder. Then I put in:
import org.apache.commons.dbutils.DbUtils
import org.apache.commons.lang.StringUtils
but when I open the .java file it says the DbUtils and StringUtils are not recognised!
Any help woul dbe greatly appreciated, thanks!
Illu
[575 byte] By [
Illua] at [2007-11-27 10:57:50]

> Then I put in...
With semicolons, hopefully.
> when I open the .java file it says the DbUtils and StringUtils are not recognised!
You apparently have not yet added the JAR files to the project's build path (i.e., they are not visible in the compile-time classpath).
~
Yep, semicolons are in!
How do I add the JAR files to the project's build path?
I thought if they were in the same folder as the files and I had the "dot" in the system environment variables for the CLASSPATH variable it should work?
Illu
Illua at 2007-7-29 12:11:39 >

> How do I add the JAR files to the project's build path?
JAR files must be added to the classpath explicitly. If you're using an IDE, there will be a way to add libraries to your project. If you're compiling from the command-line, you'll need to specify the full path and name of each JAR file you wish to have in the classpath. You could also use an automated build tool such as ANT.
~