[英]Error when building Netbeans 11.0 from source
我在我的 Windows 10 桌面系统上安装了 Apache Ant 1.10.5 版,以便从源代码构建 Netbeans 11.0。 我设置了环境变量,ant似乎运行正常。 但是,当我 cd 到 Netbeans 文件夹并运行 ant 来构建它时,我收到以下错误:
BUILD FAILED
E:\Netbeans 11.0\nbbuild\build.xml:514: The following error occurred while executing this line:
E:\Netbeans 11.0\nbbuild\build.xml:509: The following error occurred while executing this line:
E:\Netbeans 11.0\nbbuild\build.xml:556: The following error occurred while executing this line:
E:\Netbeans 11.0\nb\updatecenters\build.xml:44: exec returned: 1
有谁知道是什么原因造成的,或者我可以在哪里查找“exec返回:1”的可能原因是什么? 另外,我正在使用 jdk1.8.0_212。
以下是 build.xml 文件的周边代码:
39 <target name="bootstrap" description="Bootstrap NetBeans-specific Ant extensions."
40 depends="-jdk-init,-load-build-properties">
41 <fail message="You need to run on JDK 8+ to build NetBeans; java.home=${java.home}">
42 <condition>
43 <matches pattern="^1\.[01234567].*" string="${java.version}"/>
44 </condition>
首先你应该有JDK 8+
其次,你需要良好的网速。
或者我可以为你说一个非常简单的解决方案只需去netbeans https://netbeans.apache.org/不要去找源文件
解压缩c:\\ Drive
的zip文件夹粘贴后下载bin.zip文件并打开netbeans文件夹,你将C:\\netbeans\\bin
在这里你找到2个exe文件
netbeans.exe
netbeans64.exe
根据您的系统运行是64位或32位
在我的情况下,这是一个文件夹创建权限问题。 因此,在 Windows 上,我以管理员身份运行命令提示符。 跑过
ant
然后这个错误消失了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.