Hello,
I'm trying to use the API from Scala and build with SBT
name := "bla"
version := "1.0"
scalaVersion := "2.12.1"
resolvers += "DC Public" at "https://www.dukascopy.com/client/jforexlib/publicrepo/"
libraryDependencies ++= Seq(
"com.dukascopy.api" % "JForex-API" % "2.13.28"
)
and my Example:
import com.dukascopy.api.system.ClientFactory
object app extends App {
val client = ClientFactory.getDefaultInstance
}
I get the following stack-trace
java.lang.ClassNotFoundException: com.dukascopy.api.impl.connect.DCClientImpl
java.lang.ClassNotFoundException: com.dukascopy.api.impl.connect.DCClientImpl
at java.lang.ClassLoader.findClass(ClassLoader.java:530)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
When adding the following dependency to my build.sbt file it works. I was not able to find why I need this dependency.
"com.dukascopy.dds2" % "DDS2-jClient-JForex" % "2.45.46"
Can someone provide informations here ?
Best,
robstr