On 12/7/19 1:32 PM, Eric Bresie wrote:
     [javac]
C:\src\git\netbeans.eric\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<String,?>) in FileSystems match
     [javac] 4 errors
     [javac] 9 warnings

BUILD FAILED

Those are the same errors I encountered when the "java" command on my PATH was not the same as that defined by JAVA_HOME. See the following message on the mailing list:

Re: Building NetBeans 11.1 from source fails with compile errors
https://mail-archives.apache.org/mod_mbox/netbeans-dev/201910.mbox/%3C26c1f141-b021-4473-059f-41ec0b5e3613%40status6.com%3E

You might be hitting the same problem. The issue is described here:

NETBEANS-3209: Add JAVA_HOME and ANT_HOME note
https://issues.apache.org/jira/browse/NETBEANS-3209

The associated pull request is here:

apache/netbeans#1554
https://github.com/apache/netbeans/pull/1554

John

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