Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Chart Template(.tmpl file) not Working (In .exe/.dmg files)
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=57514
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):

Quote:
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.

Attachments:
SftswingApplication.java [4.1 KiB]
Downloaded 349 times

  Page 1 of 1