背景
在IDEA中写了测试代码,但是运行的时候一直提示 java.lang.IllegalStateException: failed to create a child event loop …
eclipse中同样的代码运行没有问题,于是搜索了一些关于这个错误的解决方法,基本上说是防火墙引起的,需要在防火墙允许应用运行中添加例外应用,添加IDEA即可。
但是,尝试了以后,还是不行……
Error:Abnormal build process termination:
C:\Condition\jdk1.8.0_171\bin\java -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=G:/WS-Idea/freemarker-word -Dpreload.config.path=C:/Users/love2/.IntelliJIdea2017.2/config/options -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=599254584395996903 -Dfile.encoding=GBK -Djps.file.types.component.name=FileTypeManager -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IntelliJIdea2017.2 "-Didea.home.path=C:\SoftWare\IntelliJ IDEA 2017.2" -Didea.config.path=C:\Users\love2\.IntelliJIdea2017.2\config -Didea.plugins.path=C:\Users\love2\.IntelliJIdea2017.2\config\plugins -Djps.log.dir=C:/Users/love2/.IntelliJIdea2017.2/system/log/build-log "-Djps.fallback.jdk.home=C:/SoftWare/IntelliJ IDEA 2017.2/jre64" -Djps.fallback.jdk.version=1.8.0_152-release -Dio.netty.noUnsafe=true -Djava.io.tmpdir=C:/Users/love2/.IntelliJIdea2017.2/system/compile-server/freemarker-word_2c2f109d/_temp_ -Djps.backward.ref.index.builder=true -Dkotlin.incremental.compilation.experimental=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"C:\Users\love2\AppData\Local\Temp\kotlin-idea-7326061649601543174-is-running\" -classpath "C:/SoftWare/IntelliJ IDEA 2017.2/lib/jps-launcher.jar;C:/Condition/jdk1.8.0_171/lib/tools.jar;C:/SoftWare/IntelliJ IDEA 2017.2/lib/optimizedFileManager.jar" org.jetbrains.jps.cmdline.Launcher "C:/SoftWare/IntelliJ IDEA 2017.2/lib/asm-all.jar;C:/SoftWare/IntelliJ IDEA 2017.2/lib/jgoodies-forms.jar;C:/SoftWare/IntelliJ IDEA 2017.2/lib/forms_rt.jar;C:/SoftWare/IntelliJ IDEA 2017.2/lib/javac2.jar;C:/SoftWare/IntelliJ IDEA 2017.2/lib/jdom.jar;C:/SoftWare/IntelliJ IDEA 2017.2/lib/maven-aether-provider-3.3.9-all.jar;C:/SoftWare/IntelliJ IDEA 2017.2/lib/jps-builders-6.jar;C:/SoftWare/IntelliJ IDEA