idea 2022.3.3 版本启动问题

Posted wdd668

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了idea 2022.3.3 版本启动问题相关的知识,希望对你有一定的参考价值。

上周五在公司环境下 安装2022.3.3试下jdk17的

原来版本2020.3.2不支持jdk17

安装后打开老是报错 搞了大半天 记录下

问题一:

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

com.intellij.ide.plugins.PluginManagerCore$EssentialPluginMissingException: Missing essential plugins: com.intellij (platform prefix: null)
    at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.java:769)
    at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins(PluginManagerCore.java:1043)
    at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:397)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

-----
Your JRE: 17.0.6+1-b653.34 amd64 (JetBrains s.r.o.)

D:\\Program Files\\JetBrains\\IntelliJ IDEA 2022.3.3\\jbr

测试:

直接找对应的用户缓存目录下 对应idea版本删除

C:\\Users\\DELL\\AppData\\Roaming\\JetBrains下面对应的idea版本文件夹删除

问题2: 启动后报错

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

com.intellij.ide.plugins.PluginManagerCore$EssentialPluginMissingException: Missing essential plugins: com.intellij (platform prefix: null)
    at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.java:769)
    at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins(PluginManagerCore.java:1043)
    at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:397)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

-----
Your JRE: 17.0.6+1-b653.34 amd64 (JetBrains s.r.o.)
D:\\Program Files\\JetBrains\\IntelliJ IDEA 2022.3.3\\jbr

C:\\Users\\DELL\\AppData\\Roaming\\JetBrains\\IntelliJIdea2022.3

idea64.exe.vmoptions
去掉
-javaagent:C:\\Users\\Public\\.BetterIntelliJ\\BetterIntelliJ-1.16.jar

3.重新打开又有新的问题


Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

java.lang.RuntimeException: Cannot invoke (class=ao, method=appFrameCreated, topic=AppLifecycleListener)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:639)
    at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:395)
    at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:374)
    at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:433)
    at jdk.proxy1/jdk.proxy1.$Proxy52.appFrameCreated(Unknown Source)
    at com.intellij.idea.IdeStarter.openProjectIfNeeded$suspendImpl(IdeStarter.kt:91)
    at com.intellij.idea.IdeStarter.openProjectIfNeeded(IdeStarter.kt)
    at com.intellij.idea.IdeStarter$start$2.invokeSuspend(IdeStarter.kt:72)
    at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt)
    at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
    at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
    at com.intellij.idea.IdeStarter.start$suspendImpl(IdeStarter.kt:70)
    at com.intellij.idea.IdeStarter.start(IdeStarter.kt)
    at com.intellij.idea.ApplicationLoader.initApplicationImpl(ApplicationLoader.kt:169)
    at com.intellij.idea.ApplicationLoader.access$initApplicationImpl(ApplicationLoader.kt:1)
    at com.intellij.idea.ApplicationLoader$initApplicationImpl$1.invokeSuspend(ApplicationLoader.kt)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.NoClassDefFoundError: com/intellij/ide/util/PropertiesComponentImpl
    at fuck_you.an.a(Unknown Source)
    at fuck_you.ao.appFrameCreated(Unknown Source)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:655)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:625)
    ... 23 more
Caused by: java.lang.ClassNotFoundException: com.intellij.ide.util.PropertiesComponentImpl PluginClassLoader(plugin=PluginDescriptor(name=BetterIntelliJ, id=org.example.BetterIntelliJ, descriptorPath=plugin.xml, path=~\\AppData\\Roaming\\JetBrains\\IntelliJIdea2022.3\\plugins\\BetterIntelliJ, version=1.16, package=null, isBundled=false), packagePrefix=null, instanceId=87, state=active)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:217)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
    ... 27 more

-----
Your JRE: 17.0.6+1-b653.34 amd64 (JetBrains s.r.o.)
D:\\Program Files\\JetBrains\\IntelliJ IDEA 2022.3.3\\jbr

参考解决方法:

Directories used by the IDE | IntelliJ IDEA Documentation

将缓存目录下的plugin对应提示错误的BetterIntelliJ目录删除  

D:\\Program Files\\JetBrains\\IntelliJ IDEA 2022.3.3\\plugin目录里面

正常启动

IDEA指定启动JDK版本

使用场景:

开发人员在自己的机器上可能装了多个版本的JDK,但是在环境变量中只能配置一个 JAVA_HOME ,so你的IDEA Eclipse 可能因为你在 JAVA_HOME 配置JDK1.8 以下的版本而无法启动(这个问题在新版本的IDEA Eclipse 中十分常见),所以下面的方法你值得拥有。

 

1、IDEA 指定启动JDK版本

说明:IDEA 16 版本的64.exe 启动必须要 jdk1.8 环境(为什么要用64.exe呢?因为64默认内存更大,稳定性更好),但是你在JAVA_HOME中配置的 <1.8 ,怎么解决这个问题呢?看下面:

    • 在环境变量中添加 IDEA_JDK配置JDK1.8 , 然后通过idea.bat文件启动IDEA,问题解决!

 

转自:

http://blog.csdn.net/u012043557/article/details/53995690

 

以上是关于idea 2022.3.3 版本启动问题的主要内容,如果未能解决你的问题,请参考以下文章

intelli idea git 怎么用

IDEA指定启动JDK版本

Intellij idea 系列教程之常用配置项

在intel idea中添加lombok并自测

idea2021.1.3版本如何启动多个客户端程序

idea2021.1.3版本如何启动多个客户端程序