where to download jedis jar file all included?

87 views
Skip to first unread message

trendspike stock

unread,
May 10, 2023, 7:57:28 AM5/10/23
to Jedis
I downloaded jedis jar file with only 800KB file size, apparently when I compiled my simple example, and run it, it says the error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gson/Gson
at redis.clients.jedis.CommandObjects.<clinit>(CommandObjects.java:3984)
at redis.clients.jedis.Jedis.<init>(Jedis.java:39)
at redis.RedisExample.main(RedisExample.java:8)

Where to download jar file with all relative java library class included?

Sazzadul Hoque

unread,
May 14, 2023, 11:36:53 AM5/14/23
to jedis...@googlegroups.com
Go to https://mvnrepository.com/artifact/redis.clients/jedis 

Go to the version you want; i.e. 4.4.0:

If you go to all the "Version"s of "Compile Dependencies" and "Optional Dependencies" (if any),
you'll get to the specific versions of all the dependencies containing option to download jar files.
Download all those jar files.

--
You received this message because you are subscribed to the Google Groups "Jedis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jedis_redis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jedis_redis/11139c52-c91f-4771-9253-15868f7e2620n%40googlegroups.com.

Oscar Besga

unread,
Jun 27, 2023, 3:28:47 AM6/27/23
to Jedis
Yep, and when downloading these dependencies, also check for their own dependencies. 
You must download dependencies of dependencies and so on. (recursively)

What are you trying to accomplish ? 
Another way could be making an empty Java project with maven or gradle with the dependencies and use the shadow/all/fat jar - to have all classes and jars into one final jar.
This final jar may suit you

Reply all
Reply to author
Forward
0 new messages