Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

Defining run-time libraries for strategy code launched by Jforex in user's jvm
 Post subject: Defining run-time libraries for strategy code launched by Jforex in user's jvm Post rating: 0   New post Posted: Wed 18 Sep, 2019, 12:36 

User rating: 2
Joined: Tue 25 Dec, 2012, 17:56
Posts: 15
I develop a multi-thread Jforex strategy. The code runs without problems under Eclipse.

Jforex compiles it correctly with:
@Library("DeepLibrary.jar;nd4j-api-0.4-rc3.5.jar;deeplearning4j-nn-0.9.0.jar;nd4j-api-0.0.3.4.jar;deeplearning4j-core-1.0.0-alpha.jar;org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar;.......");
The strategy starts correctly but the local code hangs while creating a second level thread class.

I suspect that some libraries (jars) are needed during runtime.

To check classes accessible to ClassLoader when running the code in my jvm I used the following code:
ClassLoader cl = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader)cl).getURLs();

When running under Eclipse:
StockPricePrediction ClassLoader report...
/D:/WORK/eclipse/wsDeepCuckoo/JForex-3-SDK/target/classes/
/D:/ONDOBA/Downloads_10/ECLIPSE/ECLIPSE_PLUGINS/org.eclipse.jface_3.8.102.v20130123-162658.jar
/D:/ONDOBA/Downloads_10/ECLIPSE/ECLIPSE_PLUGINS/org.eclipse.jface.text_3.8.2.v20121126-164145.jar
/D:/ONDOBA/Downloads_10/ECLIPSE/ECLIPSE_PLUGINS/org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar
/C:/Users/Leo/.m2/repository/com/dukascopy/dds2/DDS2-jClient-JForex/3.3.12/DDS2-jClient-JForex-3.3.12.jar
/C:/Users/Leo/.m2/repository/com/dukascopy/dds2/DDS2-Charts/6.24.56/DDS2-Charts-6.24.56.jar
...
/C:/Users/Leo/.m2/repository/org/nd4j/nd4j-native/1.0.0-alpha/nd4j-native-1.0.0-alpha.jar
/C:/Users/Leo/.m2/repository/org/nd4j/nd4j-native/1.0.0-alpha/nd4j-native-1.0.0-alpha-windows-x86_64.jar
/C:/Users/Leo/.m2/repository/org/nd4j/nd4j-native/1.0.0-alpha/nd4j-api-0.4-rc3.5.jar
/C:/Users/Leo/.m2/repository/org/bytedeco/javacpp/1.4.1/javacpp-1.4.1.jar
... and about 300 jars more

When running under Jforex:
DeepPricePrediction ClassLoader report...
/C:/Users/Leo/JForex/jre/lib/plugin.jar
/C:/Users/Leo/JForex/jre/lib/deploy.jar
/C:/Users/Leo/JForex/.install4j/user.jar
/C:/Users/Leo/JForex/libs/common/JForex-Launcher.jar
/C:/Users/Leo/JForex/.install4j/i4jruntime.jar

Question: what must I do to enable nd4j jars during runtime?


 

Jump to:  

cron
  © 1998-2011 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