Skip to main content
1 of 2
marcin_koss
  • 5.9k
  • 11
  • 49
  • 65

Using jars in Scala project with SBT

I'm about to work on a Scala/SBT project that requires Mechanical Turk java API. Mturk provides instruction how to install dependency in Java with Ant. I thought I could just drop ready jar (downloaded from Maven) into the /lib and that should work in my Scala project but I get dependency errors when compiling. Is this because jar is not packaged with org.apache.commons?

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory

Sorry if it's a silly question I'm still a noob in JVM world.

marcin_koss
  • 5.9k
  • 11
  • 49
  • 65