0

enter image description hereI just installed Kali and am Java 17 (JDK & JRE) and am trying to configure JAVA_HOME as an environment variable.

But Im getting [WARNING] Unable to autodetect 'javac' path, using 'javac' from the environment.

To solve my error as mentioned

  • 2
    What do you get when you run `javac -version`? I suspect that https://stackoverflow.com/questions/19861520 will answer your question ... and that (in fact) you didn't install a full JDK. – Stephen C May 18 '23 at 13:23
  • Does this answer your question? [Maven: WARNING Unable to autodetect 'javac' path, using 'javac' from the environment](https://stackoverflow.com/questions/19861520/maven-warning-unable-to-autodetect-javac-path-using-javac-from-the-environ) – aled May 18 '23 at 13:30
  • Make sure it's the JDK you use in JAVA_HOME and **pre** pend `$JAVA_HOME/bin:` to PATH – g00se May 18 '23 at 13:33
  • Please provide enough code so others can better understand or reproduce the problem. – Community May 19 '23 at 04:48

0 Answers0