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.

building a *.jar using Eclipse
 Post subject: building a *.jar using Eclipse Post rating: 0   New post Posted: Wed 11 Jan, 2012, 21:02 

User rating: 0
Joined: Wed 11 Jan, 2012, 19:35
Posts: 2
Hello everybody,
I am a Newbie at Java & Eclipse but not at programming in general.

i want to build a jar file with my additional classes using Eclipse.
Then include the jar-File to my Strategy (using @Library) and compile it in JForex
I need the JForex-API in Eclipse because i want to use several API-Objects in my jar-File.

I already tried several ways to do that, but i just don't get it.
Without API-Objects in my jar-File it works fine but as soon as i use API-Objects in my jar-File,
i get Compiling errors in JForex like this one:

-> The type com.dukascopy.api.feed.IRangeBar cannot be resolved. It is indirectly referenced from required .class files
&
-> The constructor GSignal(IRangeBar, IRangeBar) refers to the missing type IRangeBar

(using IRangeBar in JForex isnt a Problem, but using it in my jar-File)


Can anyone give me a Step-by-Step Instruction how to build such a jar-File and use it in JForex?

sorry for my bad english.


 
 Post subject: Re: building a *.jar using Eclipse Post rating: 0   New post Posted: Thu 12 Jan, 2012, 10:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You can not extend the JForex Client functionality by attaching a newer version of JForex-API, since it is not supported by the platform.


 
 Post subject: Re: building a *.jar using Eclipse Post rating: 0   New post Posted: Thu 12 Jan, 2012, 14:54 

User rating: 0
Joined: Wed 11 Jan, 2012, 19:35
Posts: 2
Hmm...

I dont want to use a newer version of JForex-API, i just want to use API-Objects (like IRangeBar, IContext, ..) in my jar-File.

JForex-Client shows me the following Version-Numbers:
Dukascoopy ver. 2.13.38
JForex API ver. 2.6.38.1


 
 Post subject: Re: building a *.jar using Eclipse Post rating: 0   New post Posted: Thu 12 Jan, 2012, 15:30 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
API objects are already there in the platform, but the packages differ. For 2.6.38 use:
import com.dukascopy.api.listener.IRangeBarFeedListener;
import com.dukascopy.api.bar.IRangeBar;


 

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