一台电脑安装多个版本的idea打不开解决办法

想要在一台电脑中安装多个idea,低版本例如idea2019和idea2020的正常安装可能不会有报错提示,

但是有时候第二个idea版本比较高例如idea2022,会发现解压后打不开程序,那就就需要安装下面的操作流程进行解决。

1.第一个版本正常安装

2.第二个版本正常安装,安装完成后修改配置文件,如2022.2.1版本的

修改/ideaIU-2022.2.1.win/bin/idea.properties的如下配置:

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the settings directory.
#---------------------------------------------------------------------
idea.config.path=${user.home}/.IntelliJIdea2022.2.1/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the caches directory.
#---------------------------------------------------------------------
idea.system.path=${user.home}/.IntelliJIdea2022.2.1/system

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the user-installed plugins directory.
#---------------------------------------------------------------------
idea.plugins.path=${idea.config.path}/plugins

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the logs directory.
#---------------------------------------------------------------------
idea.log.path=${idea.system.path}/log
同时在C:\Users\用户\目录下创建一个名称为 .IntelliJIdea2022.2.1的文件夹

这样两个不同版本的idea就可以独立的使用自己的一条配置

3.删除缓存文件

第二个idea安装完成后,打不开,但是缓存文件已经生成了,需要删除掉,

路径 : C:\Users\用户名\AppData\Roaming\JetBrains\

找到打不开的那个版本的idea同名目录删除掉即可

4.打开idea进行激活即可

posted @ 2022-10-12 11:18  black_air  阅读(3898)  评论(0编辑  收藏  举报