welcome to my blog
错误描述: 启动intellij idea时报错
java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bindat java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.BindException: Address already in use: bindat java.base/sun.nio.ch.Net.bind0(Native Method)at java.base/sun.nio.ch.Net.bind(Net.java:455)at java.base/sun.nio.ch.Net.bind(Net.java:447)at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:132)at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:551)at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1346)at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:503)at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:488)at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:985)at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:247)at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:344)at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510)at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:518)at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1044)at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)... 1 more-----
JRE 11.0.5+10-b520.38 amd64 by JetBrains s.r.o
C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.5\jbr
解决方法一: 重新启动
我重启后管用
解决方法二:使用管理员身份打开命令提示符,执行命令net stop winnat
和net start winnat
,不用重启
该方法来自评论区网友:赵丽颖No.11207
解决方法三:如果同时安装了vmware和沙盒,那么卸载其中一个就能启动了
该方法来自评论区网友:此情可待丶
解决方法四:Hyper-V和IDEA运行端口占用问题,具体解决方法见Hyper-V和IDEA运行端口占用问题
该方法来自评论区网友:Fawkes13