0


Idea运行程序时报错Error:Abnormal build process termination的解决方式

Error:Abnormal build process termination: 
D:\weblogic\jdk1.8\bin\java.exe -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" -Djdt.compiler.useSingleThread=true 
Build process started. Classpath: D:/softLocation/IntelliJ IDEA 2019.1.3/lib/jps-launcher.jar;D:/weblogic/jdk1.8/lib/tools.jar
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.jetbrains.jps.cmdline.Launcher.main(Launcher.java:58)
Caused by: java.lang.ExceptionInInitializerError
    at org.jetbrains.jps.cmdline.BuildMain.main(BuildMain.java:90)
    ... 5 more
Caused by: java.lang.IllegalArgumentException: availableProcessors: -450 (expected: > 0)
    at io.netty.util.internal.ObjectUtil.checkPositive(ObjectUtil.java:44)
    at io.netty.util.NettyRuntime$AvailableProcessorsHolder.setAvailableProcessors(NettyRuntime.java:44)
    at io.netty.util.NettyRuntime$AvailableProcessorsHolder.availableProcessors(NettyRuntime.java:70)
    at io.netty.util.NettyRuntime.availableProcessors(NettyRuntime.java:98)
    at io.netty.channel.MultithreadEventLoopGroup.<clinit>(MultithreadEventLoopGroup.java:41)
    ... 6 more

报错原因:虚拟机没有足够的内存创建对象

解决方法一:电脑jdk环境变量重新配置一下,可以换一个jdk,也可以换换位置,重新配置。之后重启电脑,打开IDEA项目配置里配你的新的JDK。

解决方法二:file --> setting --> compiler -->build process heap size 数值调高

解决方法三:重启电脑(释放内存)手动释放也可以

注:如果之前没有出现问题的大概率和防火墙没有关系,JDK配置同理,原先正常启动下出现此问题可以优先选择方法二、三进行处理

标签: intellij-idea java jvm

本文转载自: https://blog.csdn.net/wjs10136914/article/details/130501684
版权归原作者 CodeGreass.Cc 所有, 如有侵权,请联系我们删除。

“Idea运行程序时报错Error:Abnormal build process termination的解决方式”的评论:

还没有评论