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
/usr/bin/java

echo $PATH
/home/humano/.local/bin:/home/humano/.local/bin:/home/humano/.local/bin:/home/humano/.local/bin:/usr/local/bin:/usr/bin:/var/lib/snapd/snap/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/jvm/default/bin:/usr/lib/jvm/default/bin:/usr/lib/jvm/default/bin

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