【问题标题】:Intellij will not start with the error: "Error: Could not find or load main class com.intellij.idea.Main"Intellij 不会以错误开始:“错误:无法找到或加载主类 com.intellij.idea.Main”
【发布时间】:2020-02-27 13:06:26
【问题描述】:

在 Intellij 冻结后,我在终端中杀死了一个“想法”进程。在我终止进程后,idea.sh 脚本丢失了(我运行了一个 find 命令并检查了其他目录和垃圾,但没有运气)。我已经将我朋友的“idea.sh”脚本复制到它以前的位置。现在,当我运行 ./idea.sh 时,我得到:

“错误:无法找到或加载主类 com.intellij.idea.Main”。

我也尝试过搜索该课程,但没有得到任何结果。 Google 没有任何信息,我对 Intellij 也不是很了解。

关于我可能需要做什么以避免重新安装 Intellij 的任何提示?

【问题讨论】:

  • 您使用的是什么操作系统?您的副本是通过工具箱安装的,还是直接安装的?
  • 我正在使用 ubuntu,虽然我认为它是公司使用的修改版本。请参见以下 uname 命令的输出。 Linux vagrant-ubuntu-trusty-64 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  • 它是作为 ubuntu 镜像的一部分安装的。我们已经在 virtualbox 上安装了它。重新安装需要导入大量项目和设置,但并非不可能,但我希望可能有一些我错过的快速或我可以运行的命令。
  • jetbrains.com/idea/downloadjetbrains.com/idea/download/previous.html重新下载并安装到一个新的空目录。
  • 刚刚完成,它收集了我所有的项目和设置!谢谢

标签: intellij-idea


【解决方案1】:

更新 android studio 后我遇到了同样的问题。我无法通过单击 Android Studio 图标来启动它,并且在运行 ./studio.sh 后它给了我同样的错误

我这样做是为了解决我的问题

I downloaded the studio and install it in the new directory. 

After installation success, copy all the files & folders and paste and replace it into the old location where the studio was installed. 

And it is working fine.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-11-24
    • 1970-01-01
    • 2019-12-07
    • 2019-07-16
    • 2015-12-22
    • 2019-04-20
    • 1970-01-01
    • 2023-01-27
    相关资源
    最近更新 更多