Re: Building NetBeans 11.1 from source fails with compile errors
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 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) Setting alternative-version? > (5) Setting target/source at javac parameter? > (6) Any additional build settings? > > This all assumes there is a need for newer version due to new feature (I.e. > module, switch expressions, etc.) > > Eric > > On Sat, Oct 5, 2019 at 5:34 AM Geertjan Wielenga > wrote: > > > > > > > 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 is caught by > > > > the CI pipeline. > > > > > > (a) What is "CI pipeline"? > > > (b) What are these dependencies and what would be the negative result > in > > > introducing them? > > > > > > > > > Continuous integration pipeline: > > https://builds.apache.org/job/netbeans-linux/ > > > > If you're going to write code using new language features introduced in > JDK > > 9 or later, and then commit that to Apache NetBeans GitHub, that will be > > caught by the CI pipeline since the production configuration is JDK 8. > > > > Hope it helps, > > > > Gj > > > > > > > > > > On Sat, Oct 5, 2019 at 12:29 PM mlist wrote: > > > > > 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 information about the NetBeans mailing lists, visit: > > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > > > > > > > > > > -- > Eric Bresie > ebre...@gmail.com > http://www.linkedin.com/in/ebresie >
Re: Building NetBeans 11.1 from source fails with compile errors
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) Setting alternative-version? (5) Setting target/source at javac parameter? (6) Any additional build settings? This all assumes there is a need for newer version due to new feature (I.e. module, switch expressions, etc.) Eric On Sat, Oct 5, 2019 at 5:34 AM Geertjan Wielenga wrote: > > > > 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 is caught by > > > the CI pipeline. > > > > (a) What is "CI pipeline"? > > (b) What are these dependencies and what would be the negative result in > > introducing them? > > > > > Continuous integration pipeline: > https://builds.apache.org/job/netbeans-linux/ > > If you're going to write code using new language features introduced in JDK > 9 or later, and then commit that to Apache NetBeans GitHub, that will be > caught by the CI pipeline since the production configuration is JDK 8. > > Hope it helps, > > Gj > > > > > On Sat, Oct 5, 2019 at 12:29 PM mlist wrote: > > > 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 information about the NetBeans mailing lists, visit: > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > > > > -- Eric Bresie ebre...@gmail.com http://www.linkedin.com/in/ebresie
Re: Building NetBeans 11.1 from source fails with compile errors
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 idea what this (19?) modules are about and which ones I need or not. Can you please share a link with info? > I'm glad we will no longer have this issue in 11.2! Try building the > beta of that instead, and report back problems. ;-) Will do. Thanks! I hope it is stable :) OT: BTW when some of you "reply to all" instead of sending to list only I receive the messages twice - once from the list and once sent directly to me. ;) - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 was previously distributed under a license we couldn't use at Apache. At some point, I presume you've used another build of NetBeans 11.1 (or upgraded from earlier version) somewhere in user space? You would have agreed to install this library as part of enabling a feature of the IDE. However, there was an issue with how this module was distributed, such that it was installed in the IDE directory if writable rather than the user directory. This causes running another build with the same user directory to show the message you just saw, because that dependency is not there. I saw it multiple times while testing for 11.1 release - re-enabling disabled things from Plugins should fix it. I'm glad we will no longer have this issue in 11.2! Try building the beta of that instead, and report back problems. ;-) Best wishes, Neil - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 Integration - No > module providing the capability com.oracle.js.parser.implementation > could be found. 19 further modules could not be installed due to the > above problems." > > I had the options to disable these modules and continue or to exit. > > How come this is happening all of a sudden? > Is there a fix? (I don't know even what these modules are) > > - > 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, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: Building NetBeans 11.1 from source fails with compile errors
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 could not be installed due to the above problems." I had the options to disable these modules and continue or to exit. How come this is happening all of a sudden? Is there a fix? (I don't know even what these modules are) - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 was JAVA_HOME. I think it went like this ... I made sure, as you suggest, to have the correct JDK and Ant versions on my PATH: $ which java; java -version /usr/bin/java openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) $ which javac; javac -version /usr/bin/javac javac 1.8.0_222 $ which ant; ant -version /home/john/opt/apache-ant-1.10.7/bin/ant Apache Ant(TM) version 1.10.7 compiled on September 1 2019 But when I ran the build, I got compilation errors: $ ant ... [javac] /home/john/tmp/netbeans/nbbuild/build/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/platform/JDKPlatformProvider.java:120: error: reference to newFileSystem is ambiguous [javac] ctSym2FileSystem.put(file, fs = FileSystems.newFileSystem(file, null)); [javac]^ [javac] both method newFileSystem(Path,ClassLoader) in FileSystems and method newFileSystem(Path,Map) in FileSystems match [javac] 4 errors [javac] 9 warnings BUILD FAILED ... Total time: 16 seconds The compilation errors were due to Ant using the JDK commands defined by the JAVA_HOME environment variable instead of the ones on my PATH: $ ant -diagnostics | grep java.version ant.java.version: 13 java.version : 13 java.version.date : 2019-09-17 And JAVA_HOME was defined because I'm building NetBeans on my development workstation instead of on a separate build machine as I do for JavaFX and the JDK. I think "mlist" had a similar problem with ANT_HOME, which will cause the "ant" command on your PATH to transform itself into whatever version is defined by the environment variable! Setting all these environment variables explicitly in a simple Bash script solved the problems for both of us. In retrospect, it would be nice to have a fourth item on the page you linked: Apache NetBeans source and daily builds https://netbeans.apache.org/download/dev/index.html Building from source You can of course build Apache NetBeans from source. To do so: 1. Clone the https://github.com/apache/netbeans GitHub repository. 2. Install Oracle’s Java or Open JDK (v8, v11). 3. Install Apache Ant 1.10 or greater (https://ant.apache.org/). 4. Unset JAVA_HOME and ANT_HOME, or set them both appropriately. Thanks again, John - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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? > I experimented today with OpenSUSE. The netbeans build works correctly with OpenJDK 11, but fails on 1.8. From my perspective the distribution broke something in ant (build works correctly with Ubuntu ant and with upstream ant, but fails on OpenSUSE). My advise: Either raise an issue with OpenSUSE (as I found similar reports years back, I doubt anyone cares) or just drop the distribution package and use the upstream ant. HTH Matthias - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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. - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 NetBeans itself. Gj On Sat, Oct 5, 2019 at 2:18 PM mlist wrote: > 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, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: Building NetBeans 11.1 from source fails with compile errors
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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
> > 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 is caught by > > the CI pipeline. > > (a) What is "CI pipeline"? > (b) What are these dependencies and what would be the negative result in > introducing them? > Continuous integration pipeline: https://builds.apache.org/job/netbeans-linux/ If you're going to write code using new language features introduced in JDK 9 or later, and then commit that to Apache NetBeans GitHub, that will be caught by the CI pipeline since the production configuration is JDK 8. Hope it helps, Gj On Sat, Oct 5, 2019 at 12:29 PM mlist wrote: > 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 information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: Building NetBeans 11.1 from source fails with compile errors
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 information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 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 my old version of NetBeans has the structure which I > see in 'nbbuild/netbeans'. Does this mean I need only this subdirectory > (and not the whole 'nbbuild' dir)? > > 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 is caught by > > the CI pipeline. > > (a) What is "CI pipeline"? > (b) What are these dependencies and what would be the negative result in > introducing them? > > 3. Assuming the answer to 1. is 'yes' I ran the netbeans binary and it gave > me some warnings: > > $/opt/netbeans/bin/netbeans > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.netbeans.swing.plaf.gtk.ThemeValue > (jar:file:/opt/netbeans/platform/modules/org-netbeans-swing-plaf.jar!/) to > method > javax.swing.plaf.synth.SynthStyle.getColorForState(javax.swing.plaf.synth.SynthContext,javax.swing.plaf.synth.ColorType) > WARNING: Please consider reporting this to the maintainers of > org.netbeans.swing.plaf.gtk.ThemeValue > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release > > Why is that and need I do something about it? > > 4. In NB's options I see that Ant Home is set to > '/opt/netbeans/extide/ant' (which is 1.10.4). Should I set it to > /opt/ant (which is my build of 1.10.7 and the one used for building NB > itself)? > > - > 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, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: Building NetBeans 11.1 from source fails with compile errors
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 my old version of NetBeans has the structure which I see in 'nbbuild/netbeans'. Does this mean I need only this subdirectory (and not the whole 'nbbuild' dir)? 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 is caught by > the CI pipeline. (a) What is "CI pipeline"? (b) What are these dependencies and what would be the negative result in introducing them? 3. Assuming the answer to 1. is 'yes' I ran the netbeans binary and it gave me some warnings: $/opt/netbeans/bin/netbeans WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.netbeans.swing.plaf.gtk.ThemeValue (jar:file:/opt/netbeans/platform/modules/org-netbeans-swing-plaf.jar!/) to method javax.swing.plaf.synth.SynthStyle.getColorForState(javax.swing.plaf.synth.SynthContext,javax.swing.plaf.synth.ColorType) WARNING: Please consider reporting this to the maintainers of org.netbeans.swing.plaf.gtk.ThemeValue WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Why is that and need I do something about it? 4. In NB's options I see that Ant Home is set to '/opt/netbeans/extide/ant' (which is 1.10.4). Should I set it to /opt/ant (which is my build of 1.10.7 and the one used for building NB itself)? - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 complicate things! ;-) Generally, building with distribution OpenJDK 8 and distribution Ant works on 16.04 and 18.04 just fine for me. 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 Don't worry about the Ant version on 16.04. We don't even use 1.10 on the build servers at the moment. There were a few 1.9 that were broken though. Best wishes, Neil - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 (1) If you're getting persistent errors, start over with a new clone of the repository. For example, I switched back and forth between JDK 8 and JDK 11 for the build, but it seems that some remaining files -- even after a "clean" -- can leave the build (or me) hopelessly confused. (2) Download the Apache Ant 1.10.7 binary archive and its signatures: apache-ant-1.10.7-bin.tar.gz apache-ant-1.10.7-bin.tar.gz.asc apache-ant-1.10.7-bin.tar.gz.sha512 Calm any fears of installing software not in your official Linux distribution by verifying the binary archive as follows: $ gpg --verify apache-ant-1.10.7-bin.tar.gz.asc ... gpg: Good signature from "jaikiran@apache " ... $ shasum -c apache-ant-1.10.7-bin.tar.gz.sha512 apache-ant-1.10.7-bin.tar.gz: OK Unpack the archive into "~/opt/apache-ant-1.10.7". (3) Create the following Bash script, name it "nbbuild.sh", and put it in your "~/bin" directory. You will need to change the location of the JDK 8 directory (jdk8) on your system, and perhaps the location of ANT_HOME if you didn't put Ant 1.10.7 in "~/opt". The JDK 11 variables are commented out and are not used, so don't worry about them. Also note that I'm building just the "basic" cluster. --- #!/bin/bash # Builds the Apache NetBeans IDE with JDK 8 or 11 trap exit INT TERM set -o errexit # Ubuntu OpenJDK 8 and AdoptOpenJDK 11 jdk8="/usr/lib/jvm/java-8-openjdk-amd64" jdk11="$HOME/opt/jdk-11.0.4+11" # For JDK 8 export JAVA_HOME=$jdk8 options="-Dcluster.config=basic -Dnbjdk.home=$jdk8" # For JDK 11 #export JAVA_HOME=$jdk11 #options="-Dcluster.config=basic -Dnbjdk.home=$jdk11 \ #-Dpermit.jdk9.builds=true" # Calls Apache Ant export ANT_HOME=$HOME/opt/apache-ant-1.10.7 export PATH=$ANT_HOME/bin:$JAVA_HOME/bin:/usr/sbin:/usr/bin:/sbin:/bin java -version ant -version echo ant $options $@ --- (4) You should see the following output when you run the script: --- openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) Apache Ant(TM) version 1.10.7 compiled on September 1 2019 ant -Dcluster.config=basic -Dnbjdk.home=/usr/lib/jvm/java-8-openjdk-amd64 --- (5) Now remove the "echo" from the last line of the script file. Change to the root of a clean NetBeans Git repository and try building with: $ ~/bin/nbbuild.sh RESULT Those steps build NetBeans successfully for me with JDK 8, which was good enough to let me even debug a NetBeans module. REMAINING MYSTERIES (1) When I try the same script with JDK 11, I get a compilation error: [javac] /home/john/tmp/github/jgneff/netbeans/ide/db/build/fake-jdbc-40/src/java/sql/RowIdLifetime.java:2: error: package exists in another module: java.sql (2) When I pull the NetBeans Build System project (netbeans/nbbuild) into the latest NetBeans 11.2, I get one file flagged with an error: File: nbbuild/antsrc/org/netbeans/nbbuild/ReleaseJsonProperties.java Error: package org.json.simple does not exist (3) I'm not sure when or how the file "nbbuild/user.build.properties" is created. Sometimes I get the file, other times I don't, and I'm not sure whether it matters. (4) I also created the file "~/.nbbuild.properties" with the following properties, just in case, but I don't think it's necessary if the properties are defined on the "ant" command line. --- # For JDK 8 nbjdk.home=/usr/lib/jvm/java-8-openjdk-amd64 # For JDK 11 # nbjdk.home=/home/john/opt/jdk-11.0.4+11 # permit.jdk9.builds=true --- John - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 java and javac are picked up on the path. Make sure > both are set to 8. Then just try with system ant and default sources. Even that results in the same failure. - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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.org/package/update-alternatives Example I found of using on Suse here - https://forums.opensuse.org/showthread.php/512626-Java-8-jdk-and-update-alternatives-on-Leap 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 java and javac are picked up on the path. Make sure both are set to 8. Then just try with system ant and default sources. YMMV - works on Ubuntu anyway. Best wishes, Neil - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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: nbjdk.home=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/ I also used: export JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/ and I have set the newly built ant bin in path: export PATH=/tmp/download/apache-ant-1.9.14/ant-1.9.14/bin:${PATH} 3. I ran 'ant -Dcluster.config=full' Result: BUILD FAILED Here are the last lines of the output: https://susepaste.org/e00b1e78 Something strange I noticed is that the build of ant-1.9.14 shows that it is version 1.9.10: $ /tmp/download/apache-ant-1.9.14/ant-1.9.14/bin/ant -version Apache Ant(TM) version 1.9.10 compiled on August 16 2018 IOW: the same version which comes with openSUSE: $ /usr/bin/ant -version Apache Ant(TM) version 1.9.10 compiled on August 16 2018 FWIW the only difference between the two is 3 lines: diff /tmp/download/apache-ant-1.9.14/ant-1.9.14/bin/ant /usr/bin/ant 288a289,291 > if test -n "$SOURCE_DATE_EPOCH" ; then > ANT_OPTS="$ANT_OPTS -Dant.tstamp.now=$SOURCE_DATE_EPOCH" > fi So what should I do 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 software > which > is not in the official distro repos as this makes long term > maintenance a nightmare. So I hope I won't need to do it seriously, you expect me to figure out your problem, but then you discuss possible solutions. You dismiss possible solutions and don't even try them. I'll stop putting time into this. The build is stable (demonstrated by the CI pipeline), it works for me on Ubuntu and we have reports, that switching from the distributions ant to the upstream ant also fixes the build. Greetings Matthias - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 > > JDK. > > Yes, but also later on after changing JAVA_HOME the build still fails. > > - > 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, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: Building NetBeans 11.1 from source fails with compile errors
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. - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 JRE instead of the JDK. Gj > - > 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, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: Building NetBeans 11.1 from source fails with compile errors
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-openjdk-11.0.4.0-lp150.2.25.1.x86_64 java-11-openjdk-devel-11.0.4.0-lp150.2.25.1.x86_64 java-11-openjdk-headless-11.0.4.0-lp150.2.25.1.x86_64 java-1_8_0-openjdk-1.8.0.222-lp150.2.19.1.x86_64 java-1_8_0-openjdk-devel-1.8.0.222-lp150.2.19.1.x86_64 java-1_8_0-openjdk-headless-1.8.0.222-lp150.2.19.1.x86_64 > https://issues.apache.org/jira/browse/NETBEANS-239 That report says that ant 1.9.9 or newer is required, so that is satisfied, right? > https://www.mail-archive.com/dev@netbeans.incubator.apache.org/msg06452.html This discussion is 19 months old and unfortunately I can't quite understand what is the issue there. > TL;DR: Download a fresh version of ant from apache, put it on the path > and build with that. 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 software which is not in the official distro repos as this makes long term maintenance a nightmare. So I hope I won't need to do it. - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 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 output I am getting: > > > > https://susepaste.org/673abb68 > > > > What should I do to make this work please? > > Can anyone please help? > Please check which ant you are using to build. We have at least one report, where the distribution packed ant messed up the build: https://issues.apache.org/jira/browse/NETBEANS-239 Before you say it: Yes the bug talks about Fedora, but the mailing list indicates similar problems on OpenSuSE: https://www.mail-archive.com/dev@netbeans.incubator.apache.org/msg06452.html TL;DR: Download a fresh version of ant from apache, put it on the path and build with that. HTH Matthias - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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, 2019 at 2:26 PM mlist wrote: > 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 to use NetBeans IDE for PHP, CSS, > > JavaScript). > > > > Here is the output I am getting: > > > > https://susepaste.org/673abb68 > > > > What should I do to make this work please? > > Can anyone please help? > > - > 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, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: Building NetBeans 11.1 from source fails with compile errors
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 to use NetBeans IDE for PHP, CSS, > JavaScript). > > Here is the output I am getting: > > https://susepaste.org/673abb68 > > What should I do to make this work please? Can anyone please help? - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 (last lines only): https://susepaste.org/b0c6347f What am I missing? - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 newer. Please compile netbeans with JDK 8 or 11. Greetings Matthias - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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, file:/home/sahin/NetBeansProjects/netbeans/platform/openide.modules/module-auto-deps.xml, file:/home/sahin/NetBeansProjects/netbeans/platform/openide.util/module-auto-deps.xml] because could not find /home/sahin/NetBeansProjects/netbeans/nbbuild/netbeans/platform/core/core.jar platform/core.startup.base.init: All tests passed platform/core.startup.base.up-to-date: platform/core.startup.base.compile: Compiling 11 source files to /home/sahin/NetBeansProjects/netbeans/platform/core.startup.base/build/classes error: Source option 6 is no longer supported. Use 7 or later. error: Target option 6 is no longer supported. Use 7 or later. Failed to build target: all-core.startup.base On Wed, Oct 2, 2019 at 11:27 PM Matthias Bläsing wrote: > 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 > > (this is wiki that I tried > > > https://cwiki.apache.org/confluence/display/NETBEANS/Development+Environment > > ) > > > > Probably my configuration is wrong > > > > No, you just did not see the error - the relevant part of the log: > > [...] > Downloading: > http://central.maven.org/maven2/javaee/javaee-api/5/javaee-api-5.jar > Could not download > E3CC17B10AB552219EDBE33915E62937E387D0EF-javaee-api-5.jar to > /home/sahin/.hgexternalcache/E3CC17B10AB552219EDBE33915E62937E387D0EF-javaee-api-5.jar: > java.io.IOException: Cannot connect to > http://central.maven.org/maven2/javaee/javaee-api/5/javaee-api-5.jar > [...] > /home/sahin/NetBeansProjects/netbeans/nbbuild/build.xml:209: Failed to > download binaries - see log message for the detailed reasons. > BUILD FAILED (total time: 21 minutes 49 seconds) > [...] > > I read this: "Hey user, your internet connection was down for a few > seconds and I failed to fetch a file". A second run, should be faster, > as not so many files need to be fetched again. > > HTH > > Matthias > > > - > 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, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: Building NetBeans 11.1 from source fails with compile errors
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 entry: > > Is that the same as src/nbbuild/user.build.properties or (if not) where > do you put this file? it is an alternative with the same syntax, just read from the home directory (I regularly clean my build directory and the user.build.properties get removed to then) > > nbjdk.home=/home/matthias/bin/jdk1.8.0_201/ > > > > To build with that setting, prior to runnign the ant build, I set the > > JAVA_HOME to the same directory: > > > > export JAVA_HOME=/home/matthias/bin/jdk1.8.0_201/ > > > > and then run ant. > > Have you looked at my output? I am also setting: Yes, and no I did not read all 12.500 lines. Did you? > JAVA_HOME=${JAVA_HOME}:/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin > > Isn't that enough? It sets the variable for the current shell, but it will not propagate to subprocesses. What is more, I have never seen JAVA_HOME set like a search path and it never contains the bin directory. So in your case I would set JAVA_HOME as: export JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/ > Do you have 'bin' subdir in your 'jdk1.8.0_201' dir? Or is your javac > directly in 'jdk1.8.0_201'? > > That way I get a netbeans build with JDK8, as is our current build > > configuration. > > BTW I found some answer here on the list (from 09.Aug.2019) which says > that using -Dpermit.jdk9.builds=true works and I tried it - it works > indeed (build succeeds). Is that wrong and why? That option allows you to build with a JDK 9 and newer. 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 is caught by the CI pipeline. HTH Matthias - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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) where do you put this file? > nbjdk.home=/home/matthias/bin/jdk1.8.0_201/ > > To build with that setting, prior to runnign the ant build, I set the > JAVA_HOME to the same directory: > > export JAVA_HOME=/home/matthias/bin/jdk1.8.0_201/ > > and then run ant. Have you looked at my output? I am also setting: JAVA_HOME=${JAVA_HOME}:/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin Isn't that enough? Do you have 'bin' subdir in your 'jdk1.8.0_201' dir? Or is your javac directly in 'jdk1.8.0_201'? > That way I get a netbeans build with JDK8, as is our current build > configuration. BTW I found some answer here on the list (from 09.Aug.2019) which says that using -Dpermit.jdk9.builds=true works and I tried it - it works indeed (build succeeds). Is that wrong and why? Sorry for the many questions. I hope you can answer :) - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 > (this is wiki that I tried > https://cwiki.apache.org/confluence/display/NETBEANS/Development+Environment > ) > > Probably my configuration is wrong > No, you just did not see the error - the relevant part of the log: [...] Downloading: http://central.maven.org/maven2/javaee/javaee-api/5/javaee-api-5.jar Could not download E3CC17B10AB552219EDBE33915E62937E387D0EF-javaee-api-5.jar to /home/sahin/.hgexternalcache/E3CC17B10AB552219EDBE33915E62937E387D0EF-javaee-api-5.jar: java.io.IOException: Cannot connect to http://central.maven.org/maven2/javaee/javaee-api/5/javaee-api-5.jar [...] /home/sahin/NetBeansProjects/netbeans/nbbuild/build.xml:209: Failed to download binaries - see log message for the detailed reasons. BUILD FAILED (total time: 21 minutes 49 seconds) [...] I read this: "Hey user, your internet connection was down for a few seconds and I failed to fetch a file". A second run, should be faster, as not so many files need to be fetched again. HTH Matthias - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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/Development+Environment ) Probably my configuration is wrong On Wed, Oct 2, 2019 at 11:07 PM 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 to use NetBeans IDE for PHP, CSS, > JavaScript). > > Here is the output I am getting: > > https://susepaste.org/673abb68 > > What should I do to make this work 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, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Building NetBeans 11.1 from source fails with compile errors
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 intention is to use NetBeans IDE for PHP, CSS, > JavaScript). > > Here is the output I am getting: > > https://susepaste.org/673abb68 > > What should I do to make this work please? > 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: nbjdk.home=/home/matthias/bin/jdk1.8.0_201/ To build with that setting, prior to runnign the ant build, I set the JAVA_HOME to the same directory: export JAVA_HOME=/home/matthias/bin/jdk1.8.0_201/ and then run ant. That way I get a netbeans build with JDK8, as is our current build configuration. Greetings Matthias - 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Building NetBeans 11.1 from source fails with compile errors
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 output I am getting: https://susepaste.org/673abb68 What should I do to make this work 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, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists