Please read this again: https://github.com/apache/incubator-netbeans/blob/master/README.md
You cannot build NetBeans with a JDK greater than JDK 8. Gj On Sat, Dec 29, 2018 at 7:20 PM Gary Bello <gary.be...@gmail.com> wrote: > re building netbeans source; > i can always successfully build netbeans with nb82 - since it is running > jdk8 in my case; > when running nb9+ netbeans with jdk newer than jdk8 builds usually fail. > > this seems to be documented - to build suppose to use jdk8; > > i also would like to know how to build netbeans with newer jdk than jdk8, > -Gary > > > > On Sat, Dec 29, 2018 at 9:44 AM Geertjan Wielenga > <geertjan.wiele...@googlemail.com.invalid> wrote: > > > There is nothing in the README about nbjdk.home. Please follow the > > instructions in the README: > > > > https://github.com/apache/incubator-netbeans/blob/master/README.md > > > > Gj > > > > > > On Sat, Dec 29, 2018 at 6:41 PM Peter Nabbefeld <peter.nabbef...@gmx.de> > > wrote: > > > > > Conditions are all met, simply the build file for applemenu module does > > > not respect the settings for nbjdk.home. My best bet will be just to > > > remove the module from cluster.properties file. However, the build file > > > should be fixed, probably ... > > > > > > P. > > > > > > > > > Am 29.12.18 um 15:14 schrieb Geertjan Wielenga: > > > > https://github.com/apache/incubator-netbeans/blob/master/README.md > > > > > > > > Gj > > > > > > > > On Sat, Dec 29, 2018 at 1:29 PM Peter Nabbefeld < > > peter.nabbef...@gmx.de> > > > > wrote: > > > > > > > >> Hello, > > > >> > > > >> cannot build NetBeans from source: > > > >> - using git sources/master branch from > > > >> https://github.com/apache/incubator-netbeans.git > > > >> - using NB10 with java-11-openjdk on Arch Linux > > > >> - ~/incubator-netbeans/nbbuild/user.build.properties contains > > > >> nbjdk.home=/usr/lib64/jvm/java-8-openjdk > > > >> > > > >> > > > >> The problem cause is probably direct use of <javac ...> in the > > applemenu > > > >> module's build script, as I get the following error messages: > > > >> > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:22: > > > >> > > > >> error: package java.awt.desktop does not exist > > > >> import java.awt.desktop.AboutEvent; > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:23: > > > >> > > > >> error: package java.awt.desktop does not exist > > > >> import java.awt.desktop.AboutHandler; > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:24: > > > >> > > > >> error: package java.awt.desktop does not exist > > > >> import java.awt.desktop.OpenFilesEvent; > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:25: > > > >> > > > >> error: package java.awt.desktop does not exist > > > >> import java.awt.desktop.OpenFilesHandler; > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:26: > > > >> > > > >> error: package java.awt.desktop does not exist > > > >> import java.awt.desktop.PreferencesEvent; > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:27: > > > >> > > > >> error: package java.awt.desktop does not exist > > > >> import java.awt.desktop.PreferencesHandler; > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:28: > > > >> > > > >> error: package java.awt.desktop does not exist > > > >> import java.awt.desktop.QuitEvent; > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:29: > > > >> > > > >> error: package java.awt.desktop does not exist > > > >> import java.awt.desktop.QuitHandler; > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:30: > > > >> > > > >> error: package java.awt.desktop does not exist > > > >> import java.awt.desktop.QuitResponse; > > > >> > > > > > > /home/peter/incubator-netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:40: > > > >> > > > >> error: cannot find symbol > > > >> public class NbApplicationAdapterJDK9 extends NbApplicationAdapter > > > >> implements AboutHandler, OpenFilesHandler, PreferencesHandler, > > > QuitHandler > > > >> { > > > >> symbol: class AboutHandler > > > >> > > > >> It seems, the desktop classes are missing because the module does > not > > > >> respect nbjdk.home setting, so JDK 11 is used instead. > > > >> > > > >> Kind regards > > > >> > > > >> Peter > > > >> > > > >> > > > >> > --------------------------------------------------------------------- > > > >> To unsubscribe, e-mail: > dev-unsubscr...@netbeans.incubator.apache.org > > > >> For additional commands, e-mail: > > dev-h...@netbeans.incubator.apache.org > > > >> > > > >> For further information about the NetBeans mailing lists, visit: > > > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >> > > > >> > > > >> > > > >> > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org > > > For additional commands, e-mail: > dev-h...@netbeans.incubator.apache.org > > > > > > For further information about the NetBeans mailing lists, visit: > > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > > > > > > > > > >