• IDEA无法正常启动(打不开&报错)


    版权声明:转载请附上文章地址https://blog.csdn.net/qq_42672839

    IDEA无法正常启动(两种问题)

    目录

    第一种是缓存问题 双击Idea打开,无任何反应,资源管理器中有Idea的进程。

    第二种报错(报错: cannot lock system foiders)

    两种常见的情况

    第一种是缓存问题
    双击Idea打开,无任何反应,资源管理器中有Idea的进程。
    预估原因:
    系统非正常关闭有关,导致idea的缓存和索引文件出现错误。

    解决方案:
    手动删除idea的缓存与索引文件

    找到如下文件夹中的 caches 和 index 文件夹并删除 ,重新启动即可

    注意路径:

    我的:C:UsersAdministrator.IntelliJIdea2019.3system

    通用:C:Users {用户名} .IntelliJIdea2019.3system (版本号是你安装的版本)

    第二种报错(报错: cannot lock system foiders)
    今天在清理电脑后遇到一个问题,双击IDEA图标无法启动给出了一长串的错误。

    报错: cannot lock system foiders

    错误信息如下:

    Internal Error. Please report to https://https://code.google.com/p/android/issuesjava.lang.IllegalStateException: failed to create a child event loopat io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:81)at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:48)at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:57)at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:67)at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:54)at org.jetbrains.io.BuiltInServer.start(BuiltInServer.java:79)at com.intellij.idea.SocketLock$2.call(SocketLock.java:133)at com.intellij.idea.SocketLock$2.call(SocketLock.java:113)at com.intellij.idea.SocketLock.underLocks(SocketLock.java:157)at com.intellij.idea.SocketLock.lock(SocketLock.java:113)at com.intellij.idea.StartupUtil.lockSystemFolders(StartupUtil.java:263)at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:101)at com.intellij.idea.MainImpl.start(MainImpl.java:34)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:606)at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:91)at java.lang.Thread.run(Thread.java:744)Caused by: io.netty.channel.ChannelException: failed to open a new selectorat io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:127)at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:119)at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:97)at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:31)at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:77)... 18 moreCaused by: java.io.IOException: Unable to establish loopback connectionat sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:125)at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:69)at java.security.AccessController.doPrivileged(Native Method)at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:141)at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)at java.nio.channels.Pipe.open(Pipe.java:150)at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127)at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:125)... 22 moreCaused by: java.net.SocketException: Unrecognized Windows Sockets error: 87: socketat sun.nio.ch.Net.socket0(Native Method)at sun.nio.ch.Net.serverSocket(Net.java:427)at sun.nio.ch.ServerSocketChannelImpl.<init>(ServerSocketChannelImpl.java:88)at sun.nio.ch.SelectorProviderImpl.openServerSocketChannel(SelectorProviderImpl.java:56)at java.nio.channels.ServerSocketChannel.open(ServerSocketChannel.java:105)at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:90)... 30 more

    原因:具体原因没有深入了解,预估原因是机器上的Winsock协议配置有问题的话导致网络连接等问题。需要用netsh winsock reset命令来重置Winsock文件夹借以恢复网络。

    解决方案:

    打开命令提示符(管理员),输入netsh winsock reset,返回已成功等字样


    重启计算机
    双击IDEA打开,正常运行。



    ————————————————
    版权声明:本文为CSDN博主「DJyzh」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/qq_42672839/article/details/81584403

  • 相关阅读:
    leetcode5 Longest Palindromic Substring
    leetcode17 Letter Combinations of a Phone Number
    leetcode13 Roman to Integer
    leetcode14 Longest Common Prefix
    leetcode20 Valid Parentheses
    leetcode392 Is Subsequence
    leetcode121 Best Time to Buy and Sell Stock
    leetcode198 House Robber
    leetcode746 Min Cost Climbing Stairs
    tomcat下使用druid配置jnid数据源
  • 原文地址:https://www.cnblogs.com/xiaoliu66007/p/14973406.html
Copyright © 2020-2023  润新知