variables – Using Manjaro Gnome, Why do i have the java path three times in $HOME

I am having problems with flutter because of java abd would like to understand environment variables compared to windows.
Is there a file where I can edit them easily?

which java

echo $PATH

Why is the same java path three times ? /usr/lib/jvm/default/bin

I think java is properly installed:

java -version
java version “19” 2022-09-20
Java(TM) SE Runtime Environment (build 19+36-2238)
Java HotSpot(TM) 64-Bit Server VM (build 19+36-2238, mixed mode, sharing)

Thanks in advance

Read more here: Source link