Dukascopy Support Board

Chart Template(.tmpl file) not Working (In .exe/.dmg files)
Page 1 of 1

Author:  vishvas [ Mon 21 Dec, 2020, 12:55 ]
Post subject:  Chart Template(.tmpl file) not Working (In .exe/.dmg files)

I am using JForex's API.

I created one spring boot project with Swing integration.
I opened a chart from a template file which is working fine in eclipse.
But When i convert the jar to .exe/.dmg using install4j then the chart template is not working.

Below is code(Also attached as SftswingApplication.java):

File file = new File("C:\\Users\\ADmin1\\Desktop\\eurusd.tmpl");
IChart chart = client.openChart(file);
System.out.println("is live : " + chart.isAlive());

Output :
is live : true (In Eclipse)
is live : false (In .exe/.dmg)

Please guide me.

SftswingApplication.java [4.1 KiB]
Downloaded 165 times

  Page 1 of 1