Intellij异常构建过程终止(连接到127.0.0.1时出错)

时间:2017-11-18 07:12:45

标签: java intellij-idea

我在我的mac OS Sierra版本10.12.6上安装了IntelliJ IDEA CE和jdk 1.8.0_152并编写了一个简单的hello world程序。当我尝试通过UI(CMD + F9)构建项目时,它给出了以下错误:

Error:Abnormal build process termination:
Build process started. Classpath: /Applications/IntelliJ IDEA CE.app/Contents/lib/jps-launcher.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/tools.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/optimizedFileManager.jarSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Error connecting to 127.0.0.1:50569; reason: nulljava.nio.channels.ClosedChannelException
    at io.netty.channel.AbstractChannel$AbstractUnsafe.ensureOpen(...)(Unknown Source)
Exiting.

我已禁用防火墙。我正在努力想要一个简单的程序来使用IntelliJ。我已经尝试重新安装IntelliJ并重新启动我的mac。

IntelliJ configuration:
IntelliJ IDEA 2017.2.6
Build #IC-172.4574.11, built on November 13, 2017
JRE: 1.8.0_152-release-915-b12 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6

1 个答案:

答案 0 :(得分:3)

尝试为您的项目使用更新的JDK构建。 jdk1.8.0_152已经很老了。该问题也可能是由防病毒/防火墙终止进程或阻止连接引起的。