Jersey ClientBuilder.newClient(): source not found

My guess is that "Source not found" simply is a message from Eclipse telling you it cannot debug into Client oClient = ClientBuilder.newClient(); as you do not have the source code for the three jars attached in Eclipse. If you just run the program (without debugging) it might very well work. Read more here on how to add source code to jar files in Eclipse: Is there an easy way to attach source in Eclipse?.

If it still doesn't work, I would suggest adding all the jars from the bundle you downloaded to make sure you aren't missing some dependency.


You are missing the hk2 api jar which contains the class org.glassfish.hk2.utilities.binding.AbstractBinder

http://mvnrepository.com/artifact/org.glassfish.hk2/hk2-api