2017-11-18 103 views
2

我已經在我的mac OS Sierra版本10.12.6上安裝了IntelliJ IDEA CE和jdk 1.8.0_152,並編寫了一個簡單的Hello World程序。當我嘗試通過構建UI(CMD + F9)項目,它給了我下面的錯誤:Intellij異常構建過程終止(錯誤連接到127.0.0.1)

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 

回答

2

嘗試爲您的項目使用更新的JDK版本。 jdk1.8.0_152已經很老了。此問題也可能由防病毒/防火牆查殺進程或阻塞連接引起。

相關問題