Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-02 Thread Mark Eggers
Is there a minimum JDK 8 version that is required in order to be recognized by NetBeans? That would be an interesting question to answer (and possibly document). I know that there are some Maven plugins that have a minimum required JDK 8 version. I wonder if the original author could go and

Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-02 Thread Michael Bien
its possible that there is a bug somewhere. Btw the link you posted is for the download archive. JDK 8 would be at u402. I have all JDKs (8-23) in the platform manager and they are all recognized by NB. -mbien On 02.03.24 09:12, Noel Abela wrote: You can clearly see from the filename in the

Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-02 Thread Mark Eggers
I just installed NetBeans 21 running on JDK 17. I have several old projects that build against JDK 8. I've added JDK 8 to my installed Java Platforms, set my Properties->Build->Compile to the correct JDK (1.8), and have set source and target in the maven compiler plugin to 1.8. The project l

Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-02 Thread Noel Abela
You can clearly see from the filename in the screen shot that it is not a jre but a JDK. I got it from the oracle site here https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html I guess it is a bug. Thanks for the other tips On 01/03/2024 22:56, Noel Abela wrote: Tha

Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-01 Thread Michael Bien
On 01.03.24 22:56, Noel Abela wrote: Thanks again for your input. As you can see from theĀ  attached screenshot I am getting the same error for Java 8. what Java distribution is this you tried to add? if its the one from the link you posted it would be a JRE I believe. Oracle has a separate p

Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-01 Thread Michael Bien
On 01.03.24 18:24, Noel Abela wrote: I am confused about all these versions. How come if you download the latest JRE from Oracle this explains it. The platform manager expects a JDK, not a JRE. The concept of JRE is a bit dated and no longer well defined since the introduction of jlink, which

Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-01 Thread Noel Abela
Thank you for your input. 8-21 you say? But i tried Java 8 too and it gave the same error. I am confused about all these versions. How come if you download the latest JRE from Oracle you get Java 8 since the JDK went all the way up to 21? On 01/03/2024 16:15, Michael Bien wrote: NetBeans 21

Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-01 Thread Michael Bien
NetBeans 21 supports projects which use JDKs in the rage 8-21 with limited support for early access dev builds 22, 23 etc. javac itself dropped support for the 1.7 target in Java 20. So your best bet would be to try NetBeans 17 which used nb-javac based on JDK 19. Although I can't promise that