-1

I'm attempting to install Java JDK 11 for NetBeans.

I have previously installed a different version of Java on my machine (uninstalling was unsuccessful) I've tried both ARM and x64 downloads (ARM is the correct one) and followed installation for all, but nothing has worked. I've downloaded it from Oracle, java's website, and others, Azule Zulu, but nothing worked.
I followed this tutorial https://www.youtube.com/watch?v=RfIiBMJqvp8&t and everything worked perfectly. But Once I try and install Netbeans, it says there is no Java version found on the computer.
I've tried uninstalling Java, but every uninstaller says no version of Java can be found to remove.
I've restarted my computer at multiple steps during this process, all to no avail.
My Java -version returns

Java version "19.0.1" 2022-10-18
Java(TM) SE Runtime Environment (build 19.0.1+10-21)
Java HotSpot(TM) 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)
Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
MBTshock
  • 1
  • 2
  • Please clarify "attempting to install Java JDK 11" since `java -version` returns 19. What "uninstaller" are you running? Have you tried using https://sdkman.io ? – OneCricketeer Sep 01 '23 at 20:37
  • I suggest you find and delete every JDK you installed. Then install [SDKMAN!](https://sdkman.io/) to download and install a JDK. – Basil Bourque Sep 01 '23 at 21:41

1 Answers1

-1

You will need to point your $PATH or $JAVA_HOME environment variable to your java downloads /bin directory. There is plenty of tutorials on the internet on how to set this. It all depends on your OS version, if that is already there, you need to make sure your Netbeans is pointing to the correct JDK.

See: How can I set the JDK NetBeans runs on?

Beez
  • 25
  • 7