question

Upvotes
Accepted
1 0 0 0

gradlew Ema:Examples:tasks --all error

Hi

i am trying the follow up of https://developers.refinitiv.com/elektron/elektron-sdk-java/quick-start?content=43055&type=quick_start


when i execute the command

gradlew Ema:Examples:tasks --all


i got the following error

FAILURE: Build failed with an exception.


* What went wrong:

Could not open settings remapped class cache for 1g15bu7coz5ft6c82jmgali8b (C:\Users\Ricardo-PC\.gradle\caches\5.4.1\scripts-remapped\settings_6vucvwundzte9nu4lg3era13m\1g15bu7coz5ft6c82jmgali8b\settingsdcd040730888da95d185715568c9cc57).

> Could not open settings generic class cache for settings file 'C:\Elektron-SDK-1.4.0.L1.java.rrg\Java\settings.gradle' (C:\Users\Ricardo-PC\.gradle\caches\5.4.1\scripts\1g15bu7coz5ft6c82jmgali8b\settings\settingsdcd040730888da95d185715568c9cc57).

> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 57


i have deleted the cache directory, and still not works.


thanks




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

Hello @ricardo.arroyaves

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,


AHS

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

Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
4.1k 4 7 12

Could not open settings remapped class cache for 1g15bu7coz5ft6c82jmgali8b

Delete caches from gradle/caches folder.

Unsupported class file major version 57

Probably it means that your version of Java is incompatible with the one with which Gradle was compiled - "The Elektron-SDK supports Oracle JDK 1.8 & 1.11, OpenJDK 1.8". I guess you're using openjdk-13.

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.