Freeplane refuse to start after update

Freeplane refuse to start because of java version.

ERROR:   Found /usr/bin/java in $PATH.
ERROR:   It has version 1.8.0_332
ERROR:   Currently, freeplane requires java version 8 or from 11 to 17
ERROR:   
ERROR:   Select a supported java version
ERROR:   by setting FREEPLANE_JAVA_HOME to a valid java location
ERROR:   OR use an unsupported java version
ERROR:   by setting FREEPLANE_USE_UNSUPPORTED_JAVA_VERSION to 1

Here is my manjaro version:

DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=21.3.0
DISTRIB_CODENAME=Ruah

Any clean solution to solve that issue?
Thanks

This is no bug.

Likely your system has jdk-openjdk or jre-openjdk which has been updated to v18.

Follow the advise in the message

check your java version

archlinux-java status

install or set a supported version

sudo pacman -Syu jdk17-openjdk

Then set the version

archlinux-java set jdk17-openjdk