Hi,

Yep, I did an "ant clean" in advance. It seems this is related to platform/applemenu. There're some warnings there...


$ cd platform/applemenu
$ ant
...

projectized-common.do-unit-test-build:
[mkdir] Created dir: /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/platform/sampler/build/test/unit/classes [nb-javac] Compiling 3 source files to /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/platform/sampler/build/test/unit/classes [nb-javac] Ignoring source, target and bootclasspath as release has been set [parseprojectxml] warning: [path] bad path element "/home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/nbbuild/netbeans/harness/modules/org-netbeans-insane.jar": no such file or directory [parseprojectxml] warning: [path] bad path element "/home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/nbbuild/netbeans/harness/modules/org-netbeans-modules-nbjunit.jar": no such file or directory [parseprojectxml] /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/platform/sampler/test/unit/src/org/netbeans/modules/sampler/SamplerTest.java:27: error: package org.netbeans.junit does not exist
[parseprojectxml] import org.netbeans.junit.MockServices;
[parseprojectxml]                          ^
[parseprojectxml] /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/platform/sampler/test/unit/src/org/netbeans/modules/sampler/SamplerTest.java:28: error: package org.netbeans.junit does not exist
[parseprojectxml] import org.netbeans.junit.NbTestCase;
[parseprojectxml]                          ^
[parseprojectxml] /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/platform/sampler/test/unit/src/org/netbeans/modules/sampler/SelfSampleVFSTest.java:25: error: package org.netbeans.junit does not exist
[parseprojectxml] import org.netbeans.junit.NbTestCase;
[parseprojectxml]                          ^
[parseprojectxml] /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/platform/sampler/test/unit/src/org/netbeans/modules/sampler/SelfSampleVFSTest.java:33: error: cannot find symbol
[parseprojectxml] public class SelfSampleVFSTest extends NbTestCase {
[parseprojectxml]                                        ^
[parseprojectxml]   symbol: class NbTestCase
[parseprojectxml] 4 errors
[parseprojectxml] 2 warnings

BUILD FAILED
/home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/nbbuild/templates/projectized.xml:153: The following error occurred while executing this line: /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/nbbuild/templates/projectized.xml:153: The following error occurred while executing this line: /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/nbbuild/templates/projectized.xml:153: The following error occurred while executing this line: /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/nbbuild/templates/common.xml:660: The following error occurred while executing this line: /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/nbbuild/templates/common.xml:638: Compile failed; see the compiler error output for details.

Total time: 7 seconds


El 14/2/22 a las 21:30, Michael Bien escribió:
Hi Antonio,

it should work.
have you tried to run "ant clean" to get rid of build artifacts from previous builds?

i just built on a ramdisk (fresh checkout) with a slightly newer corretto JDK 11 using

"ant build-nozip"

and it worked.

(sidenote: "basic" cluster should be also buildable on JDK 17, not sure how the rest progressed)


details:
openjdk version "11.0.14" 2022-01-18 LTS
OpenJDK Runtime Environment Corretto-11.0.14.9.1 (build 11.0.14+9-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.14.9.1 (build 11.0.14+9-LTS, mixed mode, sharing)
Apache Ant(TM) version 1.10.11


-mbien


On 14.02.22 20:58, antonio wrote:
Hi all,

Is the "master" branch expected to build with Corretto 11? It doesn't in my Linux box:

$ uname -a
Linux fenix 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux

$ java -version
openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment Corretto-11.0.12.7.1 (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.12.7.1 (build 11.0.12+7-LTS, mixed mode)

$ ant -version
Apache Ant(TM) version 1.10.7 compiled on September 1 2019

$ echo $JAVA_HOME
/home/antonio/SOFTWARE/amazon-corretto-11.0.12.7.1-linux-x64/

$ ant
[...]
   [repeat]   symbol:   class QuitEvent
   [repeat]   location: class NbApplicationAdapterJDK9
   [repeat] /home/antonio/REPOS/NETBEANS/netbeans-clone/netbeans/platform/applemenu/src/org/netbeans/modules/applemenu/NbApplicationAdapterJDK9.java:83: error: cannot find symbol    [repeat]     public void handleQuitRequestWith(QuitEvent e, QuitResponse response) {
   [repeat]                                                    ^
   [repeat]   symbol:   class QuitResponse
   [repeat]   location: class NbApplicationAdapterJDK9
   [repeat] 18 errors
   [repeat] 2 warnings
  [nbmerge] Failed to build target: all-applemenu

BUILD FAILED

Any flag I should take into account?

Thanks,
Antonio




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