How to use Jedis JAR file?

603 views
Skip to first unread message

Chait

unread,
Jun 10, 2011, 6:28:12 AM6/10/11
to Jedis
Hi All,

I know that's a stupid question, but I am all new to this thing. I
use OpenJDK 1.6 and want to use Jedis client to fetch data from Redis
server. I downloaded Jedis jedis-2.0.0.jar and now want to use this.
But I don't know where to keep the JAR file.
I am a bit confused on this. Any help would be highly appreciated.

Thanks.

Jonathan Leibiusky

unread,
Jun 10, 2011, 9:13:11 AM6/10/11
to jedis...@googlegroups.com
If you are not using Maven (http://maven.apache.org/) you should probably add that JAR and apache commons pool jar (http://commons.apache.org/pool/) to your class-path.
If you are using eclipse that is done simply by adding a reference to both jars in the project java build path / libraries configuration.

Chait

unread,
Jun 10, 2011, 9:18:08 AM6/10/11
to Jedis
Hi Jonathan,
Thanks for replying. I use Maven. But how to use the downloaded JAR
file with Maven? Can you give me an example?

Thanks.

Jonathan Leibiusky

unread,
Jun 10, 2011, 10:02:15 AM6/10/11
to jedis...@googlegroups.com
If you use maven don't download the jar yourself, leave that to maven!
Explanation on how to configure maven is found here:
https://github.com/xetorthio/jedis

search for "Or use it as a maven dependency"

Chait

unread,
Jun 11, 2011, 1:13:49 AM6/11/11
to Jedis
Hi Jonathan,

If I download the latest JAR package, where do I keep it? I use
Centos 5.5. Should it be in the $JAVA_HOME/lib?

Thanks.

Chait

unread,
Jun 11, 2011, 6:47:26 AM6/11/11
to Jedis
Hi,
I downloaded JAR file and I kept it in the CATALINA_HOME/lib
directory and also in the CATALINA_HOME/webapps/<application>/WEB-INF/
lib directory of my tomcat instance.
But my application is unable to find the JAR file of jedis. So I am
getting an error.
Am I doing anything wrong?

Thanks.
Reply all
Reply to author
Forward
0 new messages