GWT : Class 'java.util.concurrent.CompletableFuture' is not present in JRE Emulation INTELLIJ IDEA

81 Views Asked by At

I am working on a GWT project in IntelliJ IDEA Ultimate 2023.3.2

All is running fine.

But IntelliJ keeps telling me that java class files are not present in JRE Emulation Library.

Please help :)

enter image description here

Class 'java.util.concurrent.CompletableFuture' is not present in JRE Emulation Library so it cannot be used in client code of 'com.srr.ShopManager' GWT module

Sorry did forget to add source is included from

<dependency>
    <groupId>com.ekotrope</groupId>
    <artifactId>gwt-completablefuture</artifactId>
    <version>1.0.0</version>
</dependency>
1

There are 1 best solutions below

0
Hansjörg Hofer On

Only solution is to disable inspection Warning in IntelliJ