Presumably this is due to changes in java security settings with jdk versions 1.6.0_27 or 1.6.0_29. As a workaround please consider
a) using @RequiresFullAccess,
b) or using an alternative console implementation, for instance:
package jforex.test;
import java.io.PrintStream;
import com.dukascopy.api.*;
/**
* The strategy uses an alternative console implementation,
* which prints messages to the java console.
*
* Enable java console the following way:
* Start > Settings > Control panel > Java > Advanced > Java console, then select "Show console"
*
*/
public class ConsoleWorkaround implements IStrategy {
IConsole console;
@Override
public void onStart(IContext context) throws JFException {
this.console = new JavaConsole();
console.getOut().println("strategy start");
}
@Override
public void onTick(Instrument instrument, ITick tick) throws JFException {}
@Override
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {}
@Override
public void onMessage(IMessage message) throws JFException {}
@Override
public void onAccount(IAccount account) throws JFException {}
@Override
public void onStop() throws JFException {}
class JavaConsole implements IConsole {
public PrintStream getOut() { return System.out; }
public PrintStream getErr() { return System.err; }
}
}