在 Grobid 中使用 Gradle 出现如下错误
Getting error as below in using Gradle in Grobid
我正在尝试在 Ubuntu 64 位中安装 Grobid。
引用自
https://grobid.readthedocs.io/en/latest/Install-Grobid/
$/GROBID_LATEST_0.5.1/grobid-0.5.1$ ./gradlew clean install
FAILURE: Build failed with an exception.
* What went wrong:
Failed to capture snapshot of input files for task ':grobid-core:compileJava' >property 'classpath' during up-to-date check.
> Error snapshotting jar [wipo-analysers-0.0.2.jar]
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
6 actionable tasks: 1 executed, 5 up-to-date
$/GROBID_LATEST_0.5.1/grobid-0.5.1$
请帮我解决这个问题。
按照以下步骤解决您的问题。
$java -version
删除最新版本的 java(即 10 或 11),因为 gradle 与 java 10 和 11.Instal 不兼容 java 7/8 /9.
$sudo apt-get purge openjdk-\*
Then
$ sudo apt-get update
$apt-cache search openjdk
$sudo apt-get install openjdk-8-jre openjdk-8-jdk
$cd grobid
$./gradlew run
我正在尝试在 Ubuntu 64 位中安装 Grobid。
引用自
https://grobid.readthedocs.io/en/latest/Install-Grobid/
$/GROBID_LATEST_0.5.1/grobid-0.5.1$ ./gradlew clean install
FAILURE: Build failed with an exception.
* What went wrong:
Failed to capture snapshot of input files for task ':grobid-core:compileJava' >property 'classpath' during up-to-date check.
> Error snapshotting jar [wipo-analysers-0.0.2.jar]
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
6 actionable tasks: 1 executed, 5 up-to-date
$/GROBID_LATEST_0.5.1/grobid-0.5.1$
请帮我解决这个问题。
按照以下步骤解决您的问题。
$java -version
删除最新版本的 java(即 10 或 11),因为 gradle 与 java 10 和 11.Instal 不兼容 java 7/8 /9.
$sudo apt-get purge openjdk-\*
Then
$ sudo apt-get update
$apt-cache search openjdk
$sudo apt-get install openjdk-8-jre openjdk-8-jdk
$cd grobid
$./gradlew run