Thank you to those of you who have responded with encouragement, that has helped a lot.

Just to close out this query, I took the plunge and installed JDK21 (after first uninstalling JDK8) and opened up my project. No errors reported but the appearance and layout of my various screens was wrecked. After a bit of Googling I found that the way to set look & feel had changed from that which I have previously used. After copying and pasting the revised code into my project - nearly 30 source files - all is well.

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?

Judi Rastall

On 20/12/2023 11:53, Michael Bien wrote:
On 20.12.23 01:30, Judi Rastall wrote:

If I may introduce myself: I am a hobbyist. I am teaching myself Java through reading books and other online sources...

cool! This is probably one of the best ways how to get into programming. Find something you want to write and then try to get there somehow with the help of books/guides etc.


 ... I didn't realise that the professional development community had moved on and was now plugged into Oracle and Java.net which seem to be under totally different care and maintenance.

NetBeans has also a JDK downloader integrated, if you want to see all the different versions and vendors you can access it under:

Tools -> Java Platforms -> Add Platform -> Download OpenJDK



So it seems that I need to refocus my attention to JDK21 from Oracle and cross my fingers and hope that my current project survives the sudden upgrade.

If you encounter problems, upgrade in steps, 8->11->17->21. But most programs will work fine on 21 if you don't have too many trouble making dependencies.


best regards,

-mbien



Regards,

Judi Rastall

On 19/12/2023 23:25, Scott Palmer wrote:
Some of this confusion is caused by the fact that there is no longer a separate JRE download. Java.com was targeted at end users, not developers. There is indeed no update to the Java 8 JRE as the JRE is discontinued. The JDK is a different story.

Scott

On Dec 18, 2023, at 2:55 PM, Leo Donahue <donahu...@gmail.com> wrote:




On Mon, Dec 18, 2023, 13:09 Stephen Winnall <st...@winnall.ch> wrote:

    Why is everyone avoiding answering Judi’s question?


On the NetBeans main page, it says indirectly that you can't install with java 8, you need 11+


    Deployment Platforms

The Apache NetBeans 20 binary releases require JDK 11+, and officially support running on JDK 11, 17 and 21.



https://netbeans.apache.org/front/main/download/nb20/


    I don’t pretend to be the expert but the answer to Judi’s
    question is: download newer (post-v8) versions of Java from
    Zulu (https://www.azul.com/downloads/?package=jdk#zulu) or some
    other OpenJDK site.

    Cheers,
    Steve

    On 18 Dec 2023, at 19:04, Michael Bien <mbie...@gmail.com> wrote:

    On 18.12.23 18:22, Judi Rastall wrote:
    I go to my Java installation (which says it is Java v8 update
    391), click on check for updates, and it tells me I have the
    latest version.

    java isn't going to update to the next major version on
    windows. I don't think the newer JDKs have even an updater
    anymore (not sure, might be vendor dependent).

    The easiest way to get started on windows is to use one of the
    community installers which bundle a current JDK with NB in one
    package. If you don't want that, then check the requirements
    on the download page and install a supported JDK of a vendor
    you prefer.

    -mbien


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
    For additional commands, e-mail: users-h...@netbeans.apache.org

    For further information about the NetBeans mailing lists, visit:
    https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to