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.

How to use another JAR packet?
 Post subject: How to use another JAR packet? Post rating: 0   New post Posted: Thu 05 Sep, 2013, 14:58 

User rating: 0
Joined: Tue 28 Aug, 2012, 14:52
Posts: 16
I download mail.jar packet that use to mail operation.
I test the jar at MyEclipse and it work.
The problem is that I can't import class that come from mail.jar.
And I try to add the path of the mail.jar to Classpath in Computer envirement, but it doesn't work.
So can I use the mail.jar?


 
 Post subject: Re: How to use another JAR packet? Post rating: 1   New post Posted: Fri 06 Sep, 2013, 14:16 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Hi,
Could you be a bit more specific on what is working and what is not working?
Quote:
The problem is that I can't import class that come from mail.jar.

Which class for instance?


 
 Post subject: Re: How to use another JAR packet? Post rating: 1   New post Posted: Fri 06 Sep, 2013, 14:58 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi tea123

To use a external jar in a strategy, you need to inform the strategy where is this library... you need to use the @Library annotation. You can see more about in https://www.dukascopy.com/wiki/#Include_libraries . I've done a article about the use of mail inside a strategy... you can find it on Article Library at Article Contest.

Trade well

JL


 
 Post subject: Re: How to use another JAR packet? Post rating: 0   New post Posted: Fri 06 Sep, 2013, 15:17 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
jlongo wrote:
We have just updated the article descriptions and uploaded an easier-to-implement example.


 

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