“无法创建Java虚拟机”

huangapple 未分类评论56阅读模式
英文:

"Failed to create Java Virtual Machine"

问题

我看到有类似的问题,但是我的问题并不完全相同,因为有部分地方是不同的。另外,我现在刚开始学习编程,所以对大部分技术术语不太熟悉。让我解释一下:

我从 https://www.java.com/de/download/ 安装了 Java。然后我开始安装 Eclipse。当我打开 Eclipse 安装程序时,收到了一个错误消息,说我需要 JDK,于是我安装了最新的版本,也就是 "Java SE 14" 版本。然后我再次尝试打开 Eclipse 安装程序,但出现了 "Failed to create Java Virtual Machine" 错误。我做了一些研究,发现 "Java SE 14" 不兼容 Eclipse,于是尝试彻底删除 Java 并重新安装。在尝试中,我进入了 "java" 所在的文件夹,并删除了所有内容。然而,在终端中使用命令(java -version)时,它告诉我 Java 仍然被安装。我还尝试安装了 "Java SE 11",但仍然遇到相同的错误。

我删除了一个叫做 "bin" 的文件夹。java.com 网页告诉我这样做是不好的,因为它是系统软件的一部分。我现在会有麻烦吗?

作为一个完全初学者,我试图自己解决这个问题,但感觉把很多东西搞砸了。有没有办法可以撤销这些损坏?就像彻底删除所有 Java 数据然后重新开始一样?我希望我已经清楚地表达了我目前遇到的问题。

提前感谢任何愿意帮助的人。

英文:

I have seen that are similar questions to mine however mine is not the same as it is partly different. Also I am getting into programming just now, so I really am not familiar with most of the technical terms. Let me explain:

I had installed Java from https://www.java.com/de/download/. I then started to install Eclipse. When I opened the Eclipse Installer, I received an error saying that I needed a JDK so I installed the latest one which was the version "Java SE 14". I then tried again to open the Eclipse Installer and got the error "Failed to create Java Virtual Machine". I did some research and read that "Java SE 14" was not compatible with Eclipse and therefore tried to delete Java completely and install it again. In my attempt to do so I went into the folder where "java" would reside and deleted everything. However when using the Terminal (java -version) it told me that java was still installed. I also tried to install "Java SE 11" but I still get the same error.

I deleted something called a "bin" folder. The java.com page tells me that was bad as it is part of the system software. Am I in trouble now?

In my attempt to solve this by myself as a total beginner I feel like I messed up a lot of things. Is there a way to undo the damage? In the sense that I could delete all Java data and start new? I hope I made clear what problems I currently encounter.

Thanks in advance to anybody who is willing to help.

huangapple
  • 本文由 发表于 2020年4月11日 05:21:51
  • 转载请务必保留本文链接:https://java.coder-hub.com/61148879.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定