You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Judi Rastall <ju...@rastall.com> on 2023/12/20 00:30:28 UTC
Re: Apache NetBeans 20 released - Java Versions
Dear all,
I seem to have raised a bit of a storm initially that then blew over as
quickly as it started. One of the criticisms levelled was that the
conversation was being held on the [ANNOUNCE] thread so I've removed
that from the subject line now - but any one of us could have done that
earlier.
If I may introduce myself: I am a hobbyist. I am teaching myself Java
through reading books and other online sources (some of which are more
help than others) and feel I'm making good progress. So I guess I fall
half way between an end-user and a developer. I have inherited an
application written in Delphi and which runs only on Windows. Since I
wanted a way of offering the app on other platforms I decided that Java
seemed the right way to go. This means I am part way through a complete
rewrite from scratch since attempting a port direct from Delphi would
only lead to tears. Since I am a hobbyist there is no way I can ever
justify paying for cross-compilers for different OSs, hence my choice of
Java.
I have received updates for my Java installation at regular intervals so
I *assumed* I had the latest version, the most recent being dated
October 2023. I now realise that this is from Java.com and is fixed to
updating/bugfixing Java 8. 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.
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.
By the way, the app I'm working on is described at wagonflow.co.uk if
anyone's interested.
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 <do...@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 <mb...@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-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
Re: Apache NetBeans 20 released - Java Versions
Posted by Eric Bresie <eb...@gmail.com>.
If this is at NB startup…Not sure if this has changed in newer NB versions
but in the Netbean folders etc/netbeans.conf the default netbeans_jdkhome in
use property points to default jdk version that NB runs on. (1). It’s also
possible to specify the location from command line when starting NB.
Believe this is the version NB is running on (which should at minimum be
compatible with version that NB was built with). Not to be confused with
the Project Java property in use or the available installed Java Platforms.
As I recall, Java 8 was the last non-openjdk release by Oracle after which
the release process and cadence change with emphasis on openjdk (open
source based).
Oracle still offers security updates (especially if there is a support
contract) but many of the older versions are reaching End Of Life (EOL).
Java 8 I believe is the last version with Java with update monitoring; I
believe this was removed or not actively supported in the openjdk version.
Reference
(1)
https://stackoverflow.com/questions/6950960/how-can-i-set-the-jdk-netbeans-runs-on
Eric Bresie
ebresie@gmail.com
On Thu, Dec 21, 2023 at 6:17 AM Michael Bien <mb...@gmail.com> wrote:
> 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
>
>
>
>
Re: Apache NetBeans 20 released - Java Versions
Posted by Michael Bien <mb...@gmail.com>.
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
Re: Apache NetBeans 20 released - Java Versions
Posted by Judi Rastall <ju...@rastall.com>.
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 <do...@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 <mb...@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-unsubscribe@netbeans.apache.org
>>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>
>>>>> For further information about the NetBeans mailing lists, visit:
>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>
>>
>
Re: Apache NetBeans 20 released - Java Versions
Posted by Michael Bien <mb...@gmail.com>.
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 <do...@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 <mb...@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-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>