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.

JForex-SDK project add additional dependencies
 Post subject: JForex-SDK project add additional dependencies Post rating: 0   New post Posted: Mon 02 Sep, 2013, 11:35 
User avatar

User rating: 1
Joined: Fri 08 Jun, 2012, 12:15
Posts: 14
Location: Russian FederationRussian Federation
Hi,

I am trying to use external libraries with JForex SDK, but when I click project properties, there is no library option, other projects have this option but JForex SDK does not have it.

So how I am supposed to add external library to JForex SDK if there is no option to do so?
Image


Attachments:
netbeans.png [13.82 KiB]
Downloaded 500 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: JForex SDK external libraries Post rating: 0   New post Posted: Mon 02 Sep, 2013, 13:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You need to add the dependencies in the pom.xml file in a similar fashion than it is done with the DDS2-jClient-JForex and the JForex-API artifacts. Read more here:
https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
and in particular:
https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management


 
 Post subject: Re: JForex SDK external libraries Post rating: 0   New post Posted: Wed 04 Sep, 2013, 15:16 
User avatar

User rating: 1
Joined: Fri 08 Jun, 2012, 12:15
Posts: 14
Location: Russian FederationRussian Federation
API Support wrote:
You need to add the dependencies in the pom.xml file in a similar fashion than it is done with the DDS2-jClient-JForex and the JForex-API artifacts. Read more here:
https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
and in particular:
https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management


Ok I figured out how to add libraries to strategy in jforex.

So, I use @Library("path/filename.jar")

I need to import a lot of libraries, is there a way to specify only folder where libraries located?


 
 Post subject: Re: JForex SDK external libraries Post rating: 0   New post Posted: Wed 04 Sep, 2013, 15:29 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
dns_di wrote:
I need to import a lot of libraries, is there a way to specify only folder where libraries located?
As far as we know there is no such feature. However, if the dependencies depend on one another then it would suffice only to add the "head" dependency, like it is in the JForex-SDK project, where it suffices to add DDS2-jClient-JForex in order to import all its dependencies. Here is an example how you add a local dependency:
https://devcenter.heroku.com/articles/local-maven-dependencies
But before using this approach, have a look if there is no public repository for the dependencies that you use.


 

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