Dukascopy
 
 
Wiki JStore Search Login

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

    Submit JForex API function requests in this forum only.
    Off topics are strictly forbidden.

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

Support for Java 8 ?
 Post subject: Support for Java 8 ? Post rating: 0   New post Posted: Sat 26 Apr, 2014, 19:24 
User avatar

User rating: 11
Joined: Tue 27 Mar, 2012, 17:47
Posts: 111
Location: GermanyGermany
Hello support,

do you know if and when the new Java8 will be supported for the JForex SDK?

Best regards,
Juergen


 
 Post subject: Re: Support for Java 8 ? Post rating: 0   New post Posted: Tue 06 May, 2014, 14:30 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It should already work on Java 1.8, with an exception of IClient.compileStrategy.


 
 Post subject: Re: Support for Java 8 ? Post rating: 0   New post Posted: Thu 15 May, 2014, 18:10 
User avatar

User rating: 11
Joined: Tue 27 Mar, 2012, 17:47
Posts: 111
Location: GermanyGermany
Hello Support,

and how about the JForex client?
This does not compile:

package jforex;

import java.util.*;

import com.dukascopy.api.*;

public class Strategy implements IStrategy {
    private IEngine engine;
    private IConsole console;
    private IHistory history;
    private IContext context;
    private IIndicators indicators;
    private IUserInterface userInterface;
   
    public void onStart(IContext context) throws JFException {
        this.engine = context.getEngine();
        this.console = context.getConsole();
        this.history = context.getHistory();
        this.context = context;
        this.indicators = context.getIndicators();
        this.userInterface = context.getUserInterface();
    }

    public void onAccount(IAccount account) throws JFException {
    }

    public void onMessage(IMessage message) throws JFException {
    }

    public void onStop() throws JFException {
    }

    public void onTick(Instrument instrument, ITick tick) throws JFException {
        Runnable r = () -> System.out.println("hello world");
    }
   
    public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
    }
}


 
 Post subject: Re: Support for Java 8 ? Post rating: 0   New post Posted: Fri 16 May, 2014, 09:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
FXjuxe wrote:
and how about the JForex client?
The strategy compiler requires an update in order to work with Java 8. This will get done as soon as available.


 
 Post subject: Re: Support for Java 8 ? Post rating: 0   New post Posted: Fri 16 May, 2014, 10:11 
User avatar

User rating: 11
Joined: Tue 27 Mar, 2012, 17:47
Posts: 111
Location: GermanyGermany
Ok, thanks.
Could you please post this here or in some other thread?

Thank you and best regards,
Juergen


 
 Post subject: Re: Support for Java 8 ? Post rating: 0   New post Posted: Fri 16 May, 2014, 11:37 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
There is already an existing thread on the matter:
viewtopic.php?f=81&t=50991&p=78859


 

Jump to:  

  © 1998-2024 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