Hello,
I'm a very unexperienced newcomer to Java development.
Following the instructions in:
Home>Development>Get Started API>Use in JForex SDK>Use In NetBeans>Maven tutorial
https://www.dukascopy.com/wiki/en/development/get-started-api/use-jforex-sdk/use-in-netbeans/MaventutorialI could compile/run a strategy in NetBeans and everything looks nice.
Now I'd like to run the strategy in the MS Windows 8.1 Command Prompt.
But I don't know how to deploy the strategy to run without NetBeans
So far what I've done is right-clicking the Maven Project JForex-SDK in NetBeans and selecting "Build with Dependencies" option.
A folder with the name 2.45.61 has been generated, it contains three files:
JForex-SDK-2.45.61.jar
JForex-SDK-2.45.61.pom
_maven.repositories
I've sent the command: java -cp JForex-SDK-2.45.61.jar singlejartest.Main
and I've got this error:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: com/dukascopy/api/system/ISystemListener
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.dukascopy.api.system.ISystemListener
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 7 more
Please can you help me to run the strategy from the Command Prompt?
Cheers
Francisco