How to build Elektron-SDK1.2.2.java

Hello:

  1. I download "Elektron-SDK1.2.2.java.zip", and build it follows the guide show below:" "https://developers.thomsonreuters.com/elektron/elektron-sdk-java/quick-start?content=43055&type=quick_start""
  2. I only run a cmd "gradlew Ema:Examples:tasks --all"
  3. I get errors as follows:

image

Best Answer

  • Hello @luxiangyuan

    When I uncomment “to enable …” and “jvmArgs…” line in Elektron-SDK1.2.2.java.rrg\Java\Ema\Examples\build.gradle file as shown below:

    tasks.withType ( JavaExec ) { 
    to enable the logger comment out the line below
    jvmArgs += "-Djava.util.logging.config.file=../Core/src/main/resources/logging.properties"
    }

    Then, I get the same problem as you

    image

    The reason is “to enable …” line is not the code that gradlew can run. It is the real comment.

    After I change build.gandle file to comment “to enable …” line as shown below:

    tasks.withType ( JavaExec ) { 
    //to enable the logger comment out the line below
    jvmArgs += "-Djava.util.logging.config.file=../Core/src/main/resources/logging.properties"
    }

    Then I can run gradlew Ema:Examples:tasks -all successfully:

    image

    Hope this help.

Answers