On 21.12.23 13:01, Judi Rastall wrote:

One small niggle remains: when I start NB20, it complains it cannot find JDK8 and can it use the default. I click 'yes' and all is well. I have found how to point NB to JDK21 at project level but I cannot find a way to switch this at global level. Is there an environment variable I need to know about here?

projects can use JDKs other than the JDK NetBeans itself is running on. So what happened there most likely was that NetBeans told you that the JDK the project was configured to use, wasn't there anymore after you uninstalled it and it is going to use the default JDK as fallback. The "default JDK" is the JDK NetBeans is running on.

You can select the JDK in the project properties window (right click on project -> properties).

Registering new JDKs would be via tools -> java platforms as previously mentioned.


but this sounds to me like you don't have to do anything, NB probably simply set it to the default which would be JDK 21 you just installed.

-mbien


Reply via email to