Wallenstein wrote:
Still throws the Internal error. Error -9
if the System.setProperty("jnlp.client.mode", "DEMO");
not set.
API Support wrote:
Please note that there is a new version of SDK project. Please download SDK project from
https://www.dukascopy.com/wiki/en/development/get-started-api/use-jforex-sdk/download-jforex-sdk#download-sdk.
Alternatively, it is possible to add the following code before calling
IClient.connect.
System.setProperty("jnlp.client.mode", "DEMO");
Yes, by System.setProperty() you specify your environment. You can do it by changing envinronment variable
private static String environment = "DEMO"; //LIVE
Or by making settings directly before connecting to platform
System.setProperty("jnlp.client.mode", "DEMO" //LIVE);