question

Upvotes
Accepted
36 0 0 3

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

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-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.

@xiaowei.wang

Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@xiaowei.wang

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvote
Accepted
36 0 0 3

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 3

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
22.1k 59 14 21

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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