首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在JDk13上运行dacapo基准测试

无法在JDk13上运行dacapo基准测试
EN

Stack Overflow用户
提问于 2019-11-20 21:21:35
回答 1查看 70关注 0票数 0

我正在尝试从这里(https://github.com/dacapobench/dacapobench)运行daCapo基准测试。

我给了JAVA_HOME作为export JAVA_HOME="/home/srcshetty/Desktop/ALL_JDKs/jdk-13.0.1/"

我已经安装了构建基准所需的所有依赖项。

我通过在benchmark文件夹中运行ant lusearch来测试lusearch benchmark。

当我使用JDK12及更低版本时,它能成功运行,而当我使用JDK13时,它就不能工作了。

使用JDK13时,我得到了以下错误消息。

代码语言:javascript
复制
[exec] compile-core:
     [exec]     [mkdir] Created dir: /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/build/core/classes/java
     [exec]     [javac] Compiling 824 source files to /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/build/core/classes/java
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/codecs/blocktree/BlockTreeTermsWriter.java:97: error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h3>Term Dictionary</h3>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/codecs/lucene70/package-info.java:21: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h1>Apache Lucene - Index File Formats</h1>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/index/PointValues.java:40: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h1>Basic Point Types</h1>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/index/PointValues.java:67: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h1>Geospatial Point Types</h1>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/index/PointValues.java:77: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h1>Advanced usage</h1>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/search/Sort.java:37: error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h3>Valid Types of Values</h3>
     [exec]     [javac]    ^
     [exec]     [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/util/packed/package-info.java:34: error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>
     [exec]     [javac]  * <h3>In-memory structures</h3>
     [exec]     [javac]    ^
     [exec] 
     [exec] BUILD FAILED

当我使用JDK12运行时,我必须将源代码从1.5更改为1.7或更高版本,构建成功,并且我也成功地运行了基准测试。但是使用JDK13时,我得到了上面的错误,但我无法找出。

EN

回答 1

Stack Overflow用户

发布于 2019-11-21 23:27:42

Lucene build使用了编译器(-Xdoclint)的doclint特性,看起来在JDK13中变得更加严格。标志在lucene/common-build.xml... -Djavac.doclint.args=""中设置。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58955385

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档