I am trying to create a Java Rest Client which will download a file via a get request and will use basic authentication. I have a dynamic web project in eclipse, where i put the Jersey Jars downloaded from https://jersey.java.net/download.html into the web-inf>lib folder.
- Q1 - Eclipse is not able to identify package javax.ws.rs.* and shows compilation errors.
- Q2- I want to package this as a Jar(I have a main class) and want to execute it from command line. Is it possible ? If not how can I do this.
Update: Below is the screenshot of what I have done till now . I am not sure if I am using the correct Jar Files .