5

I want to use the jetty httpclient(in netbeans) but have the least number of jar dependencies. I know I can import all jars from the jetty lib folder to my project but I would like to know what the minimum number of dependencies are and how you did find this out? Our there tools to find jar dependencies?

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
Alfred
  • 60,935
  • 33
  • 147
  • 186
  • 1
    Do it the hard way. Remove all JAR's, run the application, analyze the classname in `NoClassDefFoundError`, locate the JAR containing the class, add the desired JAR back and redo until you don't get the error anymore :) The easy way would be using Maven2 or some kind of dependency management. – BalusC Mar 17 '10 at 15:12

1 Answers1

2

Okay after a little bit more googling I found this link with the correct aggregrate jar to play with httpclient.

Alfred
  • 60,935
  • 33
  • 147
  • 186
  • Link is dead =( – Nebula May 16 '17 at 10:01
  • lol post of 2010 so it is not really strange I guess. If you find correct link please add extra answer with correct link – Alfred May 17 '17 at 18:00
  • 1
    Therefore the house rule: don't answer with links ;-) I never found the link, but this is what I use now: ` org.eclipse.jetty.client;version="9.2.12", org.eclipse.jetty.client.api;version="9.2.12", org.eclipse.jetty.client.util;version="9.2.12", org.eclipse.jetty.http;version="8.1.16", org.eclipse.jetty.util;version="9.2.12", org.eclipse.jetty.util.component;version="9.2.12", org.eclipse.jetty.util.ssl;version="9.2.12",` – Nebula May 22 '17 at 12:32