I want to build "Article.EMA.Java.ChainExpander" with "Elektron-SDK1.2.2.java".
"Elektron-SDK1.2.2.java" has been build successfully.
But I get errors when I build "Article.EMA.Java.ChainExpander".
I set the JAVA_PATH as follows:
it looks that there are some errors of the ema.jar version
You can modify the scripts in this question to support SDK1.2.2.
Three files must be modified with the version number of SDK.
Class-Path: ema-188.8.131.52.jar upa-184.108.40.206.jar upaValueAdd-220.127.116.11.jar commons-configuration-1.10.jar commons-lang-2.6.jar commons-logging-1.2.jar commons-collections-3.2.2.jar slf4j-api-1.7.12.jar slf4j-jdk14-1.7.12.jar Main-Class:
The version of the ChainExpander was built and tested with Elektron-SDK1.1.x. The Elektron-SDK1.2.x package has changed it's structure and modules which is why the build fails. I have contacted the owner and the package will be updated in the future. I would encourage you to post this as an issue here: https://github.com/TR-API-Samples/Article.EMA.Java.ChainExpander/issues
To move forward, I would suggest one of two things. You can try/test the example with an older version of Elektron-SDK (version 1.1.x) or modify one of the build scripts to work with the version of Elektron you have installed. I was able to modify the build.bat script within the ValueAddObjectsForEMA subdirectory to look like this:
After these modifications, the script will complain about the copying of some files which you can ignore. I was able to follow the instructions and successfully run the example.
Hope this helps.
Did you add the ELEKTRON_JAVA_HOME environmental variable to point to your SDK installation?
I set mine to
Please find attached the batch file I used to build using 3.2.2 sucessfully.
If you are still having troubles getting this to work, there was a recent patch uploaded to the ValueAddObjectsForEMA submodule. In there is a patch named: build321.bat that will work with SDK1.2.1 but @Umer Nalla attached a modified version of this file so it works with your version SDK1.2.2.
This should allow you to move forward.