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.

@Library
 Post subject: @Library Post rating: 0   New post Posted: Tue 08 Feb, 2011, 23:08 

User rating: 0
Joined: Fri 10 Sep, 2010, 09:23
Posts: 8
Hello,

I´m compiling a strategy that needs to send mails using a gmail account. This works in eclipse but I can´t compile in jforex platform.

As you can see, the code is very similar to the one you have published in the wiki.
Here you have the erros I´m getting.

21:54:37 ----------
21:54:37 The attribute value is undefined for the annotation type Library
21:54:37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21:54:37 @Library("C:/Users/Juan/Documents/JForex/Strategies/axis.jar;C:/Users/Juan/Documents/JForex/Strategies/mail-1.4.1.jar")
21:54:37 2. ERROR in C:\Users\Juan\AppData\Local\Temp\jfxide\tmp\Sample.java (at line 38)
21:54:37 ----------
21:54:37 Library cannot be resolved to a type
21:54:37 ^^^^^^^
21:54:37 @Library("C:/Users/Juan/Documents/JForex/Strategies/axis.jar;C:/Users/Juan/Documents/JForex/Strategies/mail-1.4.1.jar")
21:54:37 1. ERROR in C:\Users\Juan\AppData\Local\Temp\jfxide\tmp\Sample.java (at line 38)
21:54:37 ----------
21:54:36 Compiling Sample.java


I attach the sample code and the libraries, in a zip, I´m trying to import.
Please could you take a look and tell me whats wrong.

Thanks, Juan.


Attachments:
jars.zip [1.83 MiB]
Downloaded 346 times
Sample.java [7.09 KiB]
Downloaded 341 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: @Library Post rating: 0   New post Posted: Wed 15 Jun, 2011, 11:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider adding an import:
import com.dukascopy.api.Library;


 

Jump to:  

cron
  © 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