IntelliJ 上的构建过程异常终止
Abnormal build process termination on IntelliJ
所以我在 IntelliJ 上使用 IntelliJ 运行 Java 代码,但我遇到构建错误,我不知道该怎么办 it.I 我对此还是陌生的而且我没有找到解决办法。错误如下:
Abnormal build process termination:
C:\Users\João\.jdks\openjdk-17.0.1\bin\java.exe -Xmx700m -Djava.awt.headless=true --add-opens
jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED -Dcompile.parallel=false
-Drebuild.on.dependency.change=true -Djdt.compiler.useSingleThread=true
-Daether.connector.resumeDownloads=false -Dio.netty.initialSeedUniquifier=-3741024844704571861
-Dfile.encoding=windows-1252 -Duser.language=pt -Duser.country=PT
-Didea.paths.selector=IdeaIC2021.2 "-Didea.home.path=C:/Program Files/JetBrains/IntelliJ IDEA
Community Edition 2021.2.2"
-Didea.config.path=C:/Users/João/AppData/Roaming/JetBrains/IdeaIC2021.2
-Didea.plugins.path=C:/Users/João/AppData/Roaming/JetBrains/IdeaIC2021.2/plugins
-Djps.log.dir=C:/Users/João/AppData/Local/JetBrains/IdeaIC2021.2/log/build-log "
-Djps.fallback.jdk.home=C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/jbr"
-Djps.fallback.jdk.version=11.0.12 -Dio.netty.noUnsafe=true
-Djava.io.tmpdir=C:/Users/João/AppData/Local/JetBrains/IdeaIC2021.2/compile
-server/xpto_iml_3a183f53/_temp_ -Djps.backward.ref.index.builder=true
-Dtmh.instrument.annotations=true -Dtmh.generate.line.numbers=true
-Dkotlin.incremental.compilation=true -Dkotlin.incremental.compilation.js=true
-Dkotlin.daemon.enabled
-Dkotlin.daemon.client.alive.path=\"C:\Users\João\AppData\Local\Temp\kotlin-idea-4273125567973766633-is-running\"
-classpath "C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/jps-launcher.jar"
org.jetbrains.jps.cmdline.Launcher "C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/aether-dependency-resolver.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/jna-platform.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/slf4j.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/jps-javac-extension-1.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/maven-resolver-transport-file-1.3.3.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/maven-resolver-connector-basic-1.3.3.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/annotations.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/jps-builders-6.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/util.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/3rd-party.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/jps-builders.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/maven-resolver-transport-http-1.3.3.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/jna.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/javac2.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/jps-model.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/kotlin-stdlib-jdk8.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/protobuf-java-3.15.8.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/forms_rt.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/platform-api.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/idea_rt.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/kotlin-reflect.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/kotlin-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/eclipse/lib/eclipse-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/eclipse/lib/eclipse-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/IntelliLang/lib/java-langInjection-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/javaFX/lib/javaFX-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/javaFX/lib/javaFX-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/uiDesigner/lib/jps/java-guiForms-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/ant/lib/ant-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Groovy/lib/groovy-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Groovy/lib/groovy-constants-rt.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/maven/lib/maven-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/gradle-java/lib/gradle-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/devkit/lib/devkit-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/kotlin-jps-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/kotlin-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/space/lib/space-java-jps.jar"
org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 60583 35355ea6-7208-4290-b6c4-f7ca910824f4
C:/Users/João/AppData/Local/JetBrains/IdeaIC2021.2/compile-server
Error: LinkageError occurred while loading main class org.jetbrains.jps.cmdline.Launcher
java.lang.UnsatisfiedLinkError: 'void sun.nio.fs.WindowsNativeDispatcher.initIDs()'
我试图将错误分成几部分以便于阅读(不知道这是否有帮助,公平地说,我什至不知道它是否被正确分离)。请帮我解决这个问题错误,提前致谢!
看起来 JDK 编译器由于包含“ã”符号的项目的非 ASCII 路径而无法初始化。类似https://github.com/eclipse-openj9/openj9/issues/10945
的问题
请尝试使用不同的 JDK 来构建项目。如果没有帮助,请将 JDK(和 IDE)安装到路径中只有 ASCII 字符的路径中。
所以我在 IntelliJ 上使用 IntelliJ 运行 Java 代码,但我遇到构建错误,我不知道该怎么办 it.I 我对此还是陌生的而且我没有找到解决办法。错误如下:
Abnormal build process termination:
C:\Users\João\.jdks\openjdk-17.0.1\bin\java.exe -Xmx700m -Djava.awt.headless=true --add-opens
jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-opens
jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED -Dcompile.parallel=false
-Drebuild.on.dependency.change=true -Djdt.compiler.useSingleThread=true
-Daether.connector.resumeDownloads=false -Dio.netty.initialSeedUniquifier=-3741024844704571861
-Dfile.encoding=windows-1252 -Duser.language=pt -Duser.country=PT
-Didea.paths.selector=IdeaIC2021.2 "-Didea.home.path=C:/Program Files/JetBrains/IntelliJ IDEA
Community Edition 2021.2.2"
-Didea.config.path=C:/Users/João/AppData/Roaming/JetBrains/IdeaIC2021.2
-Didea.plugins.path=C:/Users/João/AppData/Roaming/JetBrains/IdeaIC2021.2/plugins
-Djps.log.dir=C:/Users/João/AppData/Local/JetBrains/IdeaIC2021.2/log/build-log "
-Djps.fallback.jdk.home=C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/jbr"
-Djps.fallback.jdk.version=11.0.12 -Dio.netty.noUnsafe=true
-Djava.io.tmpdir=C:/Users/João/AppData/Local/JetBrains/IdeaIC2021.2/compile
-server/xpto_iml_3a183f53/_temp_ -Djps.backward.ref.index.builder=true
-Dtmh.instrument.annotations=true -Dtmh.generate.line.numbers=true
-Dkotlin.incremental.compilation=true -Dkotlin.incremental.compilation.js=true
-Dkotlin.daemon.enabled
-Dkotlin.daemon.client.alive.path=\"C:\Users\João\AppData\Local\Temp\kotlin-idea-4273125567973766633-is-running\"
-classpath "C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/jps-launcher.jar"
org.jetbrains.jps.cmdline.Launcher "C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/aether-dependency-resolver.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/jna-platform.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/slf4j.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/jps-javac-extension-1.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/maven-resolver-transport-file-1.3.3.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/maven-resolver-connector-basic-1.3.3.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/annotations.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/jps-builders-6.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/util.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/3rd-party.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/jps-builders.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/maven-resolver-transport-http-1.3.3.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/jna.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/java/lib/javac2.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/jps-model.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/kotlin-stdlib-jdk8.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/protobuf-java-3.15.8.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/forms_rt.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/platform-api.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/lib/idea_rt.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/kotlin-reflect.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/kotlin-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/eclipse/lib/eclipse-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/eclipse/lib/eclipse-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/IntelliLang/lib/java-langInjection-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/javaFX/lib/javaFX-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/javaFX/lib/javaFX-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/uiDesigner/lib/jps/java-guiForms-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/ant/lib/ant-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Groovy/lib/groovy-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Groovy/lib/groovy-constants-rt.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/maven/lib/maven-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/gradle-java/lib/gradle-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/devkit/lib/devkit-jps.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/kotlin-jps-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/Kotlin/lib/kotlin-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.2.2/plugins/space/lib/space-java-jps.jar"
org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 60583 35355ea6-7208-4290-b6c4-f7ca910824f4
C:/Users/João/AppData/Local/JetBrains/IdeaIC2021.2/compile-server
Error: LinkageError occurred while loading main class org.jetbrains.jps.cmdline.Launcher
java.lang.UnsatisfiedLinkError: 'void sun.nio.fs.WindowsNativeDispatcher.initIDs()'
我试图将错误分成几部分以便于阅读(不知道这是否有帮助,公平地说,我什至不知道它是否被正确分离)。请帮我解决这个问题错误,提前致谢!
看起来 JDK 编译器由于包含“ã”符号的项目的非 ASCII 路径而无法初始化。类似https://github.com/eclipse-openj9/openj9/issues/10945
的问题请尝试使用不同的 JDK 来构建项目。如果没有帮助,请将 JDK(和 IDE)安装到路径中只有 ASCII 字符的路径中。