Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Scala & SBT
 Post subject: Scala & SBT Post rating: 0   New post Posted: Wed 15 Feb, 2017, 16:48 
User avatar

User rating: 0
Joined: Wed 15 Feb, 2017, 15:37
Posts: 2
Location: Germany,
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


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com