Where is the usage Elektron-SDK1.2.0.java

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 admin
    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

  • Hello @luxiangyuan

    Explanations for building and running the ChainExpander is available in the section Building the ChainExpander and the ValueAddObjectsForEMA of the README.md file. Have you read and follow the instructions in the section yet?

    If you find any errors, please look into the section Troubleshooting which explains some common errors and the solutions.

    Hope this help.

  • Hello Pimchaya.Wongrukun

    I try sevel “ELEKTRON_JAVA_HOME”,but it does not work。

    I download the java sdk "Elektron-SDK1.2.0.java_0.zip", and uzip it to "E:/", so what is the "ELEKTRON_JAVA_HOME" should be?

    thanks

  • The structure of the package has been changed. Therefore, the current script will not work with Elektron-SDK-1.2.x.

    I have quickly created build scripts (build321.bat and build321.ksh) for Elektron-SDK-1.2.1.java. Please try.

    Please set ELEKTRON_JAVA_HOME to the root directory of Elektron package, such as "D:\setup\Elektron-SDK1.2.1.java.rrg\Elektron-SDK1.2.1.java.rrg"

    script.zip

  • hello jirapongse.phuriphanvichai

    I install the "gradle-4.10";

    I download the sdk "Elektron-SDK1.2.0.java_0.zip"

    I set the ELEKTRON_JAVA_HOME

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

    I read the articles on the web "Elektron SDK - Java"

    but I even can not solve my porblems:

    1、how to use the java sdk;

    2、how to compile the example "Article.EMA.Java.ChainExpander".


  • I am so sorry that I am busied myself on other workers, now I have time to resolve this problem.

    I did as you sugested, but failed, the log as log-ema-java.txt.

    It seems that some step or files missed.

    I down load "Elektron-SDK1.2.2.java"

    log-ema-java.txt

  • after I set the ELEKTRON_JAVA_HOME = E:\srcRefer\Elektron-SDK1.2.2.java\setup\Elektron-SDK1.2.2.java.rrg\Java\Ema,

    I get the build info as "ema-java-log"

    Can I open a new question to discuss?

    ema-java-build-log.txt