question

Upvotes
Accepted
87 4 4 11

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.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-java/quick-start#rtsdk-build-system""
  2. I only run a cmd "gradlew Ema:Examples:tasks --all"
  3. I get errors as follows:

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api
15428920001.png (17.0 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
9.5k 10 5 7

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

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:

Hope this help.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
87 4 4 11

Hi Pimchaya.Wongrukun

Thank you very much, it works

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea