question

Upvotes
Accepted
36 0 0 2

How to deploy a Maven project as a stand-along project

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apimavendeployment
icon clock
10 |1500

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

Upvote
Accepted
36 0 0 2

The problem was solved by using maven-shade-plugin

https://docs.aws.amazon.com/lambda/latest/dg/java-create-jar-pkg-maven-and-eclipse.html

Thanks,

icon clock
10 |1500

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

Upvotes
36 0 0 2

Hello,

I am new to the API.

I have coded up an EMA consumer application in a Maven project (with the pom.xml including the java dependencies).

However, when I run the .jar built from the project. I got a NoClassdefFoundError.

Exception in thread "main" java.lang.NoClassDefFoundError: com/thomsonreuters/ema/access/OmmException

It looks to me that the stand-along java application can not find the necessary supporting classes.

Could you advise how to find these java dependencies or how to deploy the application?

Thanks,

icon clock
10 |1500

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

Upvotes
17.2k 47 13 19

Hi @xiaowei.wang The latest version of EMA uses Gradle build tool. It is possible to create your own build environment using Ant/script/make etc as you desire. A developer will have to include the jar files from the EMA and ETA and Elektron SDK BinaryPack lib directory into the classpath.

Let us know, if you need help doing so.

icon clock
10 |1500

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