title: Installing HTTPBuilder for Groovy
body: <p>Apologies for the newbie question, but how do you install HTTPBuilder for Groovy?</p>
  
  <p>I've added the http-builder-0.7.jar, http-builder-0.7-source.jar, and http-builder-0.7-javadoc.jar to GROOVY_HOME/lib.</p>
  
  <p>Is there anything else I need to do?  The HTTPBuilder website isn't clear.</p>
  
  <p>Code run from GroovyConsole:</p>
  
  <pre><code>import groovy.grape.Grape
  
  Grape.grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7' )
  
  def http = new groovyx.net.http.HTTPBuilder('http://www.codehaus.org')
  </code></pre>
  
  <p>I get this in response:</p>
  
  <pre><code>groovy.lang.MissingMethodException: No signature of method: static groovy.grape.Grape.grab() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.String) values: [org.codehaus.groovy.modules.http-builder, http-builder, 0.7]
  Possible solutions: grab(java.lang.String), grep(), grab(java.util.Map), grab(java.util.Map, [Ljava.util.Map;), wait(), dump()
  </code></pre>
  
  <p>EDIT 2:</p>
  
  <pre><code> @Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7' )
  
   def http = new groovyx.net.http.HTTPBuilder('http://www.codehaus.org')
  </code></pre>
  
  <p>Response:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpRequestBase
  
  at ConsoleScript6.run(ConsoleScript6:4)
  
  Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpRequestBase
  
  ... 1 more
  </code></pre>