Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-06 Thread Geertjan Wielenga
The README explains it, if not file an issue there or provide a pull request: https://github.com/apache/netbeans/blob/master/README.md Gj On Sun, Oct 6, 2019 at 3:47 PM Eric Bresie wrote: > So is the general principle that NB production is built with Long Term > Release (8, 11, etc.) JDK versi

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-06 Thread Eric Bresie
So is the general principle that NB production is built with Long Term Release (8, 11, etc.) JDK versions? Just for clarification, what is needed to build with a newer version of java? Does it involve: (1) Setting netbeans config file? (2) Setting JAVA_HOME variable? (3) Setting PATH variable? (4)

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread mlist
On Sat, 5 Oct 2019 18:09:09 +0100 Neil C Smith wrote: > At some point, I presume you've used another build of NetBeans 11.1 > (or upgraded from earlier version) somewhere in user space? Yes. Before building 11.1 I was using 8.2. After first run of 11.1 it imported everything from 8.2. I have no

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread Neil C Smith
On Sat, 5 Oct 2019 at 17:44, mlist wrote: > Something weird happened today. ... > How come this is happening all of a sudden? > Is there a fix? (I don't know even what these modules are) In addition to what Geertjan said, this is actually expected behaviour, if unfortunate. The Oracle JS library

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread Geertjan Wielenga
In 11.2 this is not needed, betas are available, use them. Gj On Sat, 5 Oct 2019 at 18:44, mlist wrote: > Something weird happened today. > > I simply started my freshly built netbeans 11.1 and it showed a dialog > box with the text: > > "Warning - could not install some modules: Nashorn Integr

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread mlist
Something weird happened today. I simply started my freshly built netbeans 11.1 and it showed a dialog box with the text: "Warning - could not install some modules: Nashorn Integration - No module providing the capability com.oracle.js.parser.implementation could be found. 19 further modules coul

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread John Neffenger
On 10/4/19 12:27 PM, Neil C Smith wrote: After making sure both java -version and javac -version give 8, cd into the netbeans directory and run `ant` as per http://netbeans.apache.org/download/dev/index.html Thank you, Neil. That prompted me to figure out how I got off to such a bad start. It wa

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread Matthias Bläsing
Hi, Am Freitag, den 04.10.2019, 19:22 +0300 schrieb mlist: > Tried also ant-1.10.7 - exactly the same failed result. > It also shows: > > $ /tmp/download/apache-ant-1.10.7/ant-1.10.7/bin/ant -version > Apache Ant(TM) version 1.9.10 compiled on August 16 2018 > > > So what should I do please? >

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread mlist
On Sat, 5 Oct 2019 14:43:40 +0200 Geertjan Wielenga wrote: > I don't understand them, what do they mean? Question #3 is about warnings which I see when running the final build from command line - is there anything to do about those warnings? Question #4 - OK, you answered that one. Thanks. ---

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread Geertjan Wielenga
I don't understand them, what do they mean? I run Ant on the command line when building NetBeans, i.e., I simply run 'ant' in the root directory of NetBeans. It's completely irrelevant what you set Ant to be in the Options window -- that is only relevant to when you run Ant projects inside/from Net

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread mlist
Thanks. What about questions 3 and 4 please? - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, vi

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread Geertjan Wielenga
> > 2. I did't quite understand this: > > On Wed, 02 Oct 2019 22:50:55 +0200 Matthias Bläsing wrote: > > > While netbeans can be build with JDK 9, that is not the production > > configuration, so you could introduce dependencies on newer > > implementations without realising it, before the problem

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread mlist
Thanks Geertjan. I hope you (or someone else) can answer the other questions too. - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further informatio

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-05 Thread Geertjan Wielenga
nbbuild/netbeans is the NetBeans installation that is created when you build Apache NetBeans. You can run it by running ‘ant tryme’ in the root of the clone or by running the executable in nbbuild/netbeans/bin. Hope that helps, Gj On Fri, 4 Oct 2019 at 22:22, mlist wrote: > John, > > Thanks fo

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-04 Thread mlist
John, Thanks for this info! Your process is the same I use but it seems the key which helped was: > export ANT_HOME=$HOME/opt/apache-ant-1.10.7 This made the proper version of my ant (built from source) to show up and the build of NetBeans was successful with jdk8! Questions: 1. I notice that

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-04 Thread Neil C Smith
On Fri, 4 Oct 2019 at 19:38, John Neffenger wrote: > I also had trouble building NetBeans, even though I've been building the > JDK and JavaFX for years. I am very new to the NetBeans source code, > though. Here's what I did to get it working. I'm on Ubuntu 16.04.6 LTS. People do like to complica

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-04 Thread John Neffenger
On 10/4/19 9:42 AM, mlist wrote: Even that results in the same failure. I also had trouble building NetBeans, even though I've been building the JDK and JavaFX for years. I am very new to the NetBeans source code, though. Here's what I did to get it working. I'm on Ubuntu 16.04.6 LTS. STEPS

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-04 Thread mlist
On Fri, 4 Oct 2019 17:23:02 +0100 Neil C Smith wrote: > Basically do > > sudo update-alternatives --display java > sudo update-alternatives --display javac > > to see what's available, and > > sudo update-alternatives --config java > sudo update-alternatives --config javac > > to select which

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-04 Thread Neil C Smith
On Thu, 3 Oct 2019 at 18:37, mlist wrote: > > On Thu, 3 Oct 2019 18:27:54 +0100 Neil C Smith wrote: > > > If Suse has update-alternatives or equivalent, you might be better > > setting up java and javac with that instead? > > What is 'update-alternatives'? > It's this https://software.opensuse.or

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-04 Thread mlist
Tried also ant-1.10.7 - exactly the same failed result. It also shows: $ /tmp/download/apache-ant-1.10.7/ant-1.10.7/bin/ant -version Apache Ant(TM) version 1.9.10 compiled on August 16 2018 > So what should I do please? - To uns

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-04 Thread mlist
On Thu, 03 Oct 2019 14:53:51 +0200 Matthias Bläsing wrote: > TL;DR: Download a fresh version of ant from apache, put it on the path > and build with that. OK. I have done that: 1. I downloaded and built successfully ant-1.9.14 from source 2. In ~/.nbbuild.properties I have set as recommended: n

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread mlist
On Thu, 3 Oct 2019 18:27:54 +0100 Neil C Smith wrote: > If Suse has update-alternatives or equivalent, you might be better > setting up java and javac with that instead? What is 'update-alternatives'? - To unsubscribe, e-mail: d

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread Neil C Smith
On Thu, 3 Oct 2019 at 18:19, mlist wrote: > Yes, but also later on after changing JAVA_HOME the build still fails. If Suse has update-alternatives or equivalent, you might be better setting up java and javac with that instead? Best wishes, Neil -

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread Matthias Bläsing
Hi, Am Donnerstag, den 03.10.2019, 19:49 +0300 schrieb mlist: > Are you sure the culprit is ant? As I mentioned previously using > -Dpermit.jdk9.builds=true works. Doesn't that mean that ant is OK but > something else needs fixing? > > * Generally I am reluctant to downloading and installing soft

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread Geertjan Wielenga
What is JAVA_HOME now set to? Gj On Thu, 3 Oct 2019 at 19:19, mlist wrote: > On Thu, 3 Oct 2019 18:51:53 +0200 Geertjan Wielenga wrote: > > > I copied and pasted the error messages from your stack trace which tells > > you explicitly that your JAVA_HOME is pointing to the JRE instead of the > >

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread mlist
On Thu, 3 Oct 2019 18:51:53 +0200 Geertjan Wielenga wrote: > I copied and pasted the error messages from your stack trace which tells > you explicitly that your JAVA_HOME is pointing to the JRE instead of the > JDK. Yes, but also later on after changing JAVA_HOME the build still fails. -

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread Geertjan Wielenga
On Thu, 3 Oct 2019 at 18:49, mlist wrote: > Geertjan, > > I can't understand what you mean by this and how I am supposed to use > it. Could you kindly clarify please? > I copied and pasted the error messages from your stack trace which tells you explicitly that your JAVA_HOME is pointing to the

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread mlist
On Thu, 03 Oct 2019 14:53:51 +0200 Matthias Bläsing wrote: > Please check which ant you are using to build. We have at least one > report, where the distribution packed ant messed up the build: The software versions I am using (from openSUSE's repos) are: ant-1.9.10-lp150.2.3.1.noarch java-11-op

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread mlist
Geertjan, I can't understand what you mean by this and how I am supposed to use it. Could you kindly clarify please? - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread Matthias Bläsing
Am Donnerstag, den 03.10.2019, 15:26 +0300 schrieb mlist: > On Wed, 2 Oct 2019 23:06:58 +0300 mlist wrote: > > > Hi, > > > > I am trying to build NetBeans 11.1 from source code on openSUSE > > Leap > > 15. I have read the instructions and the README.md but > > unfortunately I > > am getting error

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread Geertjan Wielenga
1. BUILD FAILED 2. /tmp/download/src/nbbuild/build.xml:59: Unable to find a javac compiler; 3. com.sun.tools.javac.Main is not on the classpath. 4. Perhaps JAVA_HOME does not point to the JDK. 5. It is currently set to "/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre" On Thu, Oct 3,

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-03 Thread mlist
On Wed, 2 Oct 2019 23:06:58 +0300 mlist wrote: > Hi, > > I am trying to build NetBeans 11.1 from source code on openSUSE Leap > 15. I have read the instructions and the README.md but unfortunately I > am getting errors which I don't know how to fix as I am not a Java > developer (my intention is

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread mlist
P.S. Looking at previous lines of the output it seems it is still trying to use JDK9 (I don't know why): https://susepaste.org/293ef8aa - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread mlist
OK, so I started from scratch and ran as you said: export JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/ echo 'nbjdk.home=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0' > ~/user.build.properties ant -Dcluster.config=full The build started but failed again after a while. Here is a shorter output (l

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread Matthias Bläsing
Hi, Am Mittwoch, den 02.10.2019, 23:59 +0300 schrieb Sahin gülci: > error: Source option 6 is no longer supported. Use 7 or later. > error: Target option 6 is no longer supported. Use 7 or later. you try to build with a JDK, that does not support Source version 6 anymore. That would be JDK 12 and

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread Sahin gülci
Hi Matthias, I added user.build.properties for jdk 8, now I have error like this --> https://gist.github.com/sgulci/cad916b9f0a716978bffea028c79496c Basically says this : Cannot translate according to [file:/home/sahin/NetBeansProjects/netbeans/platform/openide.filesystems/module-auto-deps.xml,

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread Matthias Bläsing
Hi, Am Mittwoch, den 02.10.2019, 23:40 +0300 schrieb mlist: > On Wed, 02 Oct 2019 22:12:42 +0200 Matthias Bläsing wrote: > > > you are building with JDK11 against an JDK8 by setting nbjdk.home. I > > fixed this for me by switching to JDK8 as the build JDK. > > > > My .nbbuild.properties has this

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread mlist
On Wed, 02 Oct 2019 22:12:42 +0200 Matthias Bläsing wrote: > you are building with JDK11 against an JDK8 by setting nbjdk.home. I > fixed this for me by switching to JDK8 as the build JDK. > > My .nbbuild.properties has this entry: Is that the same as src/nbbuild/user.build.properties or (if not

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread Matthias Bläsing
Hi, Am Mittwoch, den 02.10.2019, 23:21 +0300 schrieb Sahin gülci: > Hi All, > > I can't build Netbeans from master branch either, my error logs -> > https://gist.github.com/sgulci/cad916b9f0a716978bffea028c79496c > On attachment, my Netbeans Build System picture shows error on my > Netbeans

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread Sahin gülci
Hi All, I can't build Netbeans from master branch either, my error logs -> https://gist.github.com/sgulci/cad916b9f0a716978bffea028c79496c On attachment, my Netbeans Build System picture shows error on my Netbeans (this is wiki that I tried https://cwiki.apache.org/confluence/display/NETBEANS/Dev

Re: Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread Matthias Bläsing
Hi, Am Mittwoch, den 02.10.2019, 23:06 +0300 schrieb mlist: > > I am trying to build NetBeans 11.1 from source code on openSUSE Leap > 15. I have read the instructions and the README.md but unfortunately > I > am getting errors which I don't know how to fix as I am not a Java > developer (my inte

Building NetBeans 11.1 from source fails with compile errors

2019-10-02 Thread mlist
Hi, I am trying to build NetBeans 11.1 from source code on openSUSE Leap 15. I have read the instructions and the README.md but unfortunately I am getting errors which I don't know how to fix as I am not a Java developer (my intention is to use NetBeans IDE for PHP, CSS, JavaScript). Here is the