E
E
evgenyt20002021-08-22 19:58:54
Java
evgenyt2000, 2021-08-22 19:58:54

How to find out where the path to JAVA_HOME comes from?

Good evening!
My JAVA_HOME takes the wrong path from somewhere and I can't figure out where?
I tried exports / edit bash / sxc, etc., nothing helps, it resets to the wrong one.
As if it is either registered somewhere or somehow stuck somewhere

PS Thanks for the help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yurii Nekrasov, 2021-08-26
@driversti

What does the command output you: ? Consider using SDKMAN to install and version control Java, Maven, Gradle, etc.
echo $JAVA_HOME

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question