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-sdkrrtema-apielektron-message-api
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.

1 Answer

Upvote
Accepted
4.1k 3 6 10

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea