Where is the usage Elektron-SDK1.2.0.java

luxiangyuan
luxiangyuan Contributor

Hi:

I download the java sdk "Elektron-SDK1.2.0.java"

I download the example"Article.EMA.Java.ChainExpander"

I can not compile the example successful.

Where is the useage of the java sdk?

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    The steps to build Article.EMA.Java.ChainExpander with Elektron-SDK1.2.0.java are:

    1. git clone https://github.com/TR-API-Samples/Article.EMA.Java.ChainExpander
    2. cd Article.EMA.Java.ChainExpander
    3. git submodule init
    4. git submodule update
    5. set ELEKTRON_JAVA_HOME=C:\api\Elektron-SDK1.2.0.java\setup\Elektron-SDK1.2.0.java.rrg\Elektron-SDK1.2.0.java.rrg

      image
    6. Copy the script files:
      • Article.EMA.Java.ChainExpander\build320.bat
      • Article.EMA.Java.ChainExpander\ValueAddObjectsForEMA\build320.bat
      • Article.EMA.Java.ChainExpander\ValueAddObjectsForEMA\Manifest320.txt
    7. Run build320.bat in the Article.EMA.Java.ChainExpander folder
    Building ValueAddObjectsForEMA...
    Building the ValueAddObjectsForEMA javadoc...
    Building the MarketPriceStepByStepExample application...
    Building the ChainStepByStepExample application...
    Building jar files...
    Copying dependencies...
    1 File(s) copied
    1 File(s) copied
    1 File(s) copied
    1 File(s) copied
    1 File(s) copied
    1 File(s) copied
    1 File(s) copied
    1 File(s) copied
    1 File(s) copied
    ** ValueAddObjectsForEMA project successfully built **
    Building the ChainExpander application...
    Building the jar file...
    ** ChainExpander project successfully built **

    I have attached build scipts for Elektron-SDK1.2.0.java. Please copy files to the Article.EMA.Java.ChainExpander and Article.EMA.Java.ChainExpander\ValueAddObjectsForEMA folders.

    script320.zip

    If it doesn't work, please share the error messages.

Answers