On Fri, 20 Nov 2026 at 10:06, Maciej Jaros via users <[email protected]> wrote: > That is interesting. I didn't know the license of the bundled JDK was a > problem. I guess the installer could detect Java already installed in a > standard directory ("C:\P. Files\Java" IIRC). If not detected, perhaps > it could ask the user to point to a Java binary (and deduce the Java > path from that).
This is what the old, NBI installer did. Unfortunately we had to discontinue that because it was unmaintained and causing too many serious issues for users. The community installers have always used NBPackage, as were all the Apache provided installers on other OS. For technical reasons, at the time installers with NBI were discontinued, shipping an installer with NBPackage without a JDK on Windows was not an option. Technically, it's feasible to look at that again now. Although it shouldn't write the detected JDK into netbeans.conf as the old installer did. That was a terrible idea! The packager should validate that a JDK is available and can be found by the launcher though. > That would also resolve a common problem that JDK21 is > really what most people would want for stable development on Windows. > Would also make the installers smaller. The JDK you run NetBeans on does not have to be the JDK you develop projects with. We recommend people run NetBeans on JDK 27 anyway. Separate out your build and IDE requirements. > Also, Adoptium scripts, at least, are licensed under the Apache License, > Version 2.0... Though I guess GPL with exceptions might be a problem for > Apache, right? > https://adoptium.net/about#licenses GPL with Classpath Exception is Apache License compatible. The JDK as a whole is not under that exception. For example, the HotSpot VM is GPL-only. This does not "affect" the license of what you run on the JDK, but it does mean that it cannot be distributed on ASF's infrastructure. Now, OpenJ9 might be another matter ... :-) Best wishes, Neil --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
