gpt4 book ai didi

java - 最新的 Java/OS X 更新破坏了 My Ant

转载 作者:行者123 更新时间:2023-12-01 15:54:11 25 4
gpt4 key购买 nike

自从我更新到 10.6.4 和最新的 java 更新以来出现了各种问题。

我安装的 ant 找不到任何东西!

[javac] /Users/path/to/my/build.xml:458: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 8 source files to /Users/path/to/WEB-INF/classes
[javac] Fatal Error: Unable to find package java.lang in classpath or bootclasspath

458行

<javac
nowarn="on"
destdir="${media.classes}"
fork="true"
debug="true"
target="1.5"
memoryMaximumSize="${maxHeapSize}"
bootclasspathref="bootclasspath"
>

定义 bootclasspath 的位置

<path id="bootclasspath">
<fileset dir="lib/xml">
<include name="xalan-2.7.1.jar"/>
<include name="xml-apis.jar"/>
</fileset>
<fileset dir="${java.home}/lib">
<include name="*.jar"/>
</fileset>
</path>

这是什么意思?

最佳答案

尝试将第 458 行的 bootclasspahtref 更改为 ilrn.bootclasspath

关于java - 最新的 Java/OS X 更新破坏了 My Ant,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5413093/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com