eclipsescaladatabinder

How do I set up databinder dispatch to use in Eclipse?


I want to write some simple HTTP requests in Scala, but the Databinder Dispatch library only has instructions for sbt. As I'm a relative Eclipse newbie, can someone provide instructions on how I use it in my Scala project in Eclipse? I'm using Scala 2.9.0final. If it's incompatible with Dispatch, is there an alternative HTTP request library?

http://dispatch.databinder.net/Try+Dispatch.html

Thanks!


Solution

  • The page you have linked to has instructions for trying out Dispatch using the sbt console. It is much easier to just do that on the command line, although if you are convinced to do this with Eclipse you can read your integration options.

    If you want to set up a project and write some code that can be compiled that uses Dispatch, you should follow this guide.

    Which shows you how to pull in dispatch as a dependency with either Maven or sbt. The main thing is that you want the dispatch + dependencies jars on your project classpath in Eclipse before you can start playing with it - sbt makes this easy in Scala and Maven for Java. So you should look around for how to do that in Eclipse to see your options.