Guide
If java points to the wrong version or javac is missing, your environment usually has conflicting state between PATH and JAVA_HOME.
`java -version` shows one JDK while `JAVA_HOME` points somewhere else, or `javac` is not found.
Old Java bin folders remain in PATH, or JAVA_HOME still targets an outdated installation.
Use one managed source of truth for the active JDK and let the tool rewrite the user environment consistently.
Install JDK Manager, scan for JDKs, select the intended version, then open a new terminal so the updated environment is picked up cleanly. If you need the fix in the current shell, use the CLI export workflow.