使用 apache ant 安装孵化 netbeans10

使用 apache ant 安装孵化 netbeans10

从 incubating-netbeans 10.0 源安装 build ant - netbeans 时,我看到此屏幕。我已添加 Java 路径并安装了 ant。

C:\Netbeans10>ant
Buildfile: C:\Netbeans10\build.xml

-jdk-pre-preinit:

-jdk-preinit:

-jdk-warn:

-jdk-presetdef-basic:

-jdk-default:

-jdk-init:

-load-build-properties:

bootstrap:
     [echo] Bootstrapping NetBeans-specific Ant extensions...

init-tasks:

-check-vanilla-javac:

prepare-vanilla-javac:
   [delete] Deleting directory C:\Netbeans10\nbbuild\build\langtools
    [mkdir] Created dir: C:\Netbeans10\nbbuild\build\langtools
    [unzip] Expanding: C:\Netbeans10\nbbuild\external\langtools-9.zip into C:\Netbeans10\nbbuild\build\langtools
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release

-def-check:

-check-langtools.jdk.home:

-prepare-build:
    [mkdir] Created dir: C:\Netbeans10\nbbuild\build\langtools\build\modules
    [mkdir] Created dir: C:\Netbeans10\nbbuild\build\langtools\build\toolclasses
    [mkdir] Created dir: C:\Netbeans10\nbbuild\build\langtools\build\gensrc
    [mkdir] Created dir: C:\Netbeans10\nbbuild\build\langtools\build\bin
    [mkdir] Created dir: C:\Netbeans10\nbbuild\build\langtools\build\prevsrc

-def-pparse:
     [copy] Copying 1 file to C:\Netbeans10\nbbuild\build\langtools\build\toolclasses\propertiesparser
    [javac] Compiling 2 source files to C:\Netbeans10\nbbuild\build\langtools\build\toolclasses

-def-pcompile:
    [javac] Compiling 2 source files to C:\Netbeans10\nbbuild\build\langtools\build\toolclasses

generate-sources:
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release

generate-sources-internal:
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release

generate-sources-internal:
   [pparse] Generating 1 resource files to C:\Netbeans10\nbbuild\build\langtools\build\gensrc\jdk.compiler
 [pcompile] Generating 15 resource files to C:\Netbeans10\nbbuild\build\langtools\build\gensrc\jdk.compiler
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release

generate-sources-internal:
 [pcompile] Generating 18 resource files to C:\Netbeans10\nbbuild\build\langtools\build\gensrc\jdk.javadoc
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release

generate-sources-internal:
 [pcompile] Generating 10 resource files to C:\Netbeans10\nbbuild\build\langtools\build\gensrc\jdk.jdeps
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release
[pathconvert] Warning: Nashorn engine is planned to be removed from a future JDK release

generate-sources-internal:
 [pcompile] Generating 6 resource files to C:\Netbeans10\nbbuild\build\langtools\build\gensrc\jdk.jshell
    [mkdir] Created dir: C:\Netbeans10\nbbuild\build\langtools\build\nb
    [javac] Compiling 1031 source files to C:\Netbeans10\nbbuild\build\langtools\build\nb
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\java.compiler\share\classes\javax\annotation\processing\Messager.java:28: error: package javax.annotation does not exist
    [javac] import javax.annotation.*;
    [javac] ^
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.compiler\share\classes\com\sun\tools\javac\model\AnnotationProxyMaker.java:35: error: package sun.reflect.annotation is not visible
    [javac] import sun.reflect.annotation.*;
    [javac]                   ^
    [javac]   (package sun.reflect.annotation is declared in module java.base, which does not export it to module java.compiler)
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\com\sun\tools\doclets\internal\toolkit\builders\LayoutParser.java:31: error: package javax.xml.parsers is not visible
    [javac] import javax.xml.parsers.*;
    [javac]                 ^
    [javac]   (package javax.xml.parsers is declared in module java.xml, but module java.compiler does not read it)
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\com\sun\tools\doclets\internal\toolkit\builders\LayoutParser.java:33: error: package org.xml.sax is not visible
    [javac] import org.xml.sax.*;
    [javac]               ^
    [javac]   (package org.xml.sax is declared in module java.xml, but module java.compiler does not read it)
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\com\sun\tools\doclets\internal\toolkit\builders\LayoutParser.java:34: error: package org.xml.sax.helpers is not visible
    [javac] import org.xml.sax.helpers.DefaultHandler;
    [javac]                   ^
    [javac]   (package org.xml.sax.helpers is declared in module java.xml, but module java.compiler does not read it)
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\jdk\javadoc\internal\doclets\toolkit\builders\LayoutParser.java:31: error: package javax.xml.parsers is not visible
    [javac] import javax.xml.parsers.*;
    [javac]                 ^
    [javac]   (package javax.xml.parsers is declared in module java.xml, but module java.compiler does not read it)
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\jdk\javadoc\internal\doclets\toolkit\builders\LayoutParser.java:36: error: package org.xml.sax is not visible
    [javac] import org.xml.sax.*;
    [javac]               ^
    [javac]   (package org.xml.sax is declared in module java.xml, but module java.compiler does not read it)
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\jdk\javadoc\internal\doclets\toolkit\builders\LayoutParser.java:37: error: package org.xml.sax.helpers is not visible
    [javac] import org.xml.sax.helpers.DefaultHandler;
    [javac]                   ^
    [javac]   (package org.xml.sax.helpers is declared in module java.xml, but module java.compiler does not read it)
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\com\sun\tools\doclets\internal\toolkit\builders\LayoutParser.java:105: error: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\com\sun\tools\doclets\internal\toolkit\builders\LayoutParser.java:122: error: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\jdk\javadoc\internal\doclets\toolkit\builders\LayoutParser.java:110: error: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Netbeans10\nbbuild\build\langtools\src\jdk.javadoc\share\classes\jdk\javadoc\internal\doclets\toolkit\builders\LayoutParser.java:126: error: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] 12 errors

BUILD FAILED
C:\Netbeans10\nbbuild\build.xml:151: Compile failed; see the compiler error output for details.

Total time: 1 minute 49 seconds

C:\Netbeans10>

如何安装此文件?java 版本:11.0.2;javac -version:11.0.2;ant -version:1.10.5

相关内容