Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Defining run-time libraries for strategy code launched by Jforex in user's jvm http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=57155 |
Page 1 of 1 |
Author: | leoterra [ Wed 18 Sep, 2019, 12:36 ] |
Post subject: | Defining run-time libraries for strategy code launched by Jforex in user's jvm |
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? |
Page 1 of 1 |