Reputation: 3401
According to documentation, all I need for Jersey client is jersey-bundle.jar
. But simple code, that build request and sent it throws exception.
java.lang.ClassNotFoundException: javax.ws.rs.ext.Providers
After adding jsr311-api-1.0.jar
to classpath. I've got another exception.
java.lang.NoClassDefFoundError: javax/ws/rs/core/Response$StatusType
Where I can find full dependencies list for Jersey. What jars should be included. Btw I can't user Maven, Ivy, etc.
Thanks
Upvotes: 6
Views: 16198
Reputation: 1538
Better way is to add bundle for Jersey client from MavenLink select jar/pom from files row instead of adding independent/separate jar files. if you do so by adding individual jar you will get another/different error. Better way is to add bundle (group of dependent jar for Jersy client).
Upvotes: 0
Reputation: 66751
For me this meant "you're using jersey-client 1.19 but then manually calling out jsr311-api-1.0" (apparently that jersey client version [1.19] actually needs/wanted jsr311-api-1.1 instead).
Upvotes: 0
Reputation: 5857
Try searching mvnrepository.com
Lookup the package you are looking for, select a version and it shows you everything the artifact depends on.
For jersey-bundle: http://mvnrepository.com/artifact/com.sun.jersey/jersey-bundle/1.13-b01
Upvotes: 3