Thank You for Your answers! My problem is slightly more complex: NB has been able to compile its own sources most of the time, and IMHO it should be able to do that. The necessity of working around a buggy build system is not compatible to a high-quality IDE like NB has always been.

From this point of view, I don't just want to get it built somehow, but at least I want to know what's going wrong. I've noticed some strange points, and I want to share these and get some answers, as I'm interested in further improvements of NB, while I've currently not enough time to investigate the problems in the deep.  :-/

Kind regards

Peter



Am 29.12.18 um 19:19 schrieb Gary Bello:
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
<[email protected]> 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 <[email protected]>
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 <
[email protected]>
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: [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





---------------------------------------------------------------------
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






---------------------------------------------------------------------
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



Reply via email to