skip to Main Content

Ubuntu 18.04.6 LTS

Netbeans updated (to version 19) over the weekend, and it is now completely broken. Whenever I try to start Netbeans, a pop-up shows up:

Pop-up Title: Java 11 or newer required
Pop-up Desc: Cannot run on older versions of Java than Java 11. Please install Java 11 or newer or use –jdkhome switch to point to its installation directory.

The pop-up can be dismissed but Netbeans will not open.

I do not want to use Java 11 (currently using Java 8) because some of my dependencies do not support it. What is the best way to fix this? Can I roll back this unwanted update? How do I prevent Netbeans from being updated in the future?

2

Answers


  1. Only the NetBeans binaries need the JDK 11, it doesn’t effect your projects!

    The Runtime JDK NetBeans uses does not influence the JDK range projects can use. – Release Notes

    Login or Signup to reply.
  2. Although NetBeans itself needs JDK 11, I think you can still build and run JDK 8 for your projects.

    See Overview of JDK 8 Support in NetBeans IDE.

    I also found this other StackOverflow question about pointing NetBeans at a particular JDK, in case you run into any trouble: How can I set the JDK NetBeans runs on?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search