Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which JAR for javax.ws.rs.Path?

 
Russell Bateman
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...and other such symbols. I've wandered all over downloading JARs and trying them out in my Eclipse project without success. I'm still getting unresolved imports and usage for things like this.

What am I doing? I'm just beginning to write a sample RESTful web service using Jersey.

Thanks for any push out the door you can give me (including telling me a better forum for my question).

Russ Bateman
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javax.ws.rs package in particular is in a file called jsr311-api-XYZ.jar (XYZ being the version). It -and all the other ones that are needed to use Jersey- is available from the Jersey download page.
 
Russell Bateman
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that explains it. The Jersey download page is pretty confusing; I didn't want to have to build the JARs myself.

In fact, I appear to have found it. Where it says, "A zip of Jersey containing the Jersey jars, core dependencies (it does not provide dependencies for third party jars beyond the those for JSON support) and JavaDoc." Using those JARs I have eliminated the errors.

Thanks again,

Russ
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sure is confusing. It seems they're trying to push people to use Maven, instead of providing a proper download page that lists all available jar files. https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html#chapter_deps should list everything in section 7.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic