Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
Question by luxiangyuan · Nov 29, 2018 at 05:28 AM · elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api

[EMA]How to build "Article.EMA.Java.ChainExpander" with Elektron-SDK1.2.2.java

hello

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:

set ELEKTRON_JAVA_HOME=E:\srcRefer\Elektron-SDK1.2.2.java\setup\Elektron-SDK1.2.2.java.rrg\Java

it looks that there are some errors of the ema.jar version

errors:

env

15434870181.png (53.1 KiB)
15434870771.png (10.6 KiB)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

5 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Jirapongse · Dec 03, 2018 at 10:02 PM

You can modify the scripts in this question to support SDK1.2.2.

Three files must be modified with the version number of SDK.

1. Article.EMA.Java.ChainExpander\build322.bat

2. Article.EMA.Java.ChainExpander\ValueAddObjectsForEMA\build322.bat

3. Article.EMA.Java.ChainExpander\ValueAddObjectsForEMA\Manifest322.txt

Class-Path: ema-3.2.2.0.jar upa-3.2.2.0.jar upaValueAdd-3.2.2.0.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: 


1.jpg (43.0 KiB)
2-1.jpg (257.0 KiB)
Comment

People who like this

0 Show 6 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Jirapongse ♦♦ · Dec 03, 2018 at 10:03 PM 0
Share

The script files are in script322.zip.

script322.zip (2.4 KiB)
avatar image
luxiangyuan · Dec 03, 2018 at 10:47 PM 0
Share

hello, I did as you answer, but faild again.

1、I use \build322.bat in ChainExpander;

2、I modiry ChainExpander\build322.bat as the modify pic

3、I use build322.bat in ValueAddObjectsForEMA

4、but there are some errors tool

modify ChainExpander\build322.bat

errors

modify.png (44.1 KiB)
errors-java.png (67.8 KiB)
avatar image
REFINITIV
Jirapongse ♦♦ luxiangyuan · Dec 03, 2018 at 11:37 PM 0
Share

It looks like to be the no such file or directory error.

Please make sure that all jar files are in the correct folders.

notfound.jpg (133.5 KiB)
avatar image
luxiangyuan Jirapongse ♦♦ · Dec 04, 2018 at 12:58 AM 0
Share

hello:

it looks there is only one error left as follos,

error-java-only.png (82.0 KiB)
avatar image
REFINITIV
Jirapongse ♦♦ · Dec 04, 2018 at 01:23 AM 0
Share

The file in Article.EMA.Java.ChainExpander\build322.bat is incorrect.

After calling build322.bat in ValueAddObjectsForEMA, it should "Building the ChainExpander application..."

The modified scripts are in script322.zip

script322.zip (2.4 KiB)
build.jpg (105.1 KiB)
avatar image
luxiangyuan Jirapongse ♦♦ · Dec 04, 2018 at 01:37 AM 0
Share

thank you very much,it works.

avatar image
REFINITIV
Answer by nick.zincone · Nov 29, 2018 at 10:44 AM

Hi @luxiangyuan,

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.


ahs.png (21.0 KiB)
Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
luxiangyuan · Dec 03, 2018 at 07:55 AM 0
Share

hello

I did as you say bo modify "build.bat", but some errors remain.

the build.bat shows as attachment.

the error shows as below:

build.txt

build.txt (1.7 KiB)
errors.png (112.3 KiB)
avatar image
REFINITIV
Answer by nick.zincone · Dec 03, 2018 at 10:05 AM

Hi @luxiangyuan,

I see a few mistakes in your attached 'build.txt' file. Please refer to my changes above and ensure they are the same. This is what I found:


ahs.png (63.0 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by umer.nalla · Dec 03, 2018 at 11:51 AM

Hi @luxiangyuan

Did you add the ELEKTRON_JAVA_HOME environmental variable to point to your SDK installation?

I set mine to

set ELEKTRON_JAVA_HOME=C:\Reuters\ElektronJ1.2.2

Please find attached the batch file I used to build using 3.2.2 sucessfully.

build322.txt


build322.txt (3.6 KiB)
Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
luxiangyuan · Dec 04, 2018 at 01:41 AM 0
Share

hi Umer:

thank you very much for your patience, it works.

your suggestion gives me lots of helps,

avatar image
REFINITIV
Answer by nick.zincone · Dec 03, 2018 at 05:55 PM

Hi @luxiangyuan,

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.

thanks.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
luxiangyuan · Dec 04, 2018 at 01:39 AM 0
Share

hi nick.zincone.

thank you very much, it works.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

(JAVA) Does using interestAfterRefresh(false) remove the need for deregistering items with Elektron?

EMA CPP - Exception adding ric into OmmArray

Login Domain - Components and Elements in Login responses

Elektron EMAConfig.xml Consumer Buffer tuning

I am testing logging in to Refinitiv Contibutions Channel using test credentials and getting Error 1002 client connect() failed. Where do I start to look?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges