Java 如何在不运行 JRE 安装的情况下运行 Eclipse?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/789792/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 19:31:44  来源:igfitidea点击:

How to run Eclipse without running JRE installation?

eclipsejava

提问by Amaron

I wish to run Eclipse for C++ on Vista but I absolutely do not want to run the JRE installation. Is there any place where I can get a JRE in a zip that I can just dump in the Eclipse folder and have it work?

我希望在 Vista 上为 C++ 运行 Eclipse,但我绝对不想运行 JRE 安装。有没有什么地方可以让我在 zip 中获取 JRE,我可以将它转储到 Eclipse 文件夹中并让它工作?

采纳答案by WhyNotHugo

Download the JRE offline installer, right click on it, and have 7zip/winrar/whatever unzip it.

下载 JRE 脱机安装程序,右键单击它,然后使用 7zip/winrar/whatever 解压缩它。

You'll get a folder with a fully funcional JRE, but no install required :)
You might want to read thisto run Eclipse with that JRE.

您将获得一个包含全功能 JRE 的文件夹,但无需安装 :)
您可能需要阅读本文以使用该 JRE 运行 Eclipse。

回答by Peter Perhá?

No, it can not be done the way you described it. The JRE needs to be installed using the Installer. Why would you be so afraid of installing JRE on your machine? Without it, Eclipse won't work, as it is by itself a Java application and runs in a JVM.

不,它不能按照你描述的方式完成。需要使用安装程序安装 JRE。为什么你会如此害怕在你的机器上安装 JRE?没有它,Eclipse 将无法工作,因为它本身就是一个 Java 应用程序并在 JVM 中运行。

EDIT, Pardon my ignorance. McDowell is right.

编辑,请原谅我的无知。麦克道尔是对的。

回答by Artyom Sokolov

I guess you should take a look on Apache Harmony. I beleive it could be just unpacked to the standalone directory. After that Eclipse could be launched with -vm PATH_TO_JVM option. (In theory)

我想你应该看看Apache Harmony。我相信它可以只是解压到独立目录。之后可以使用 -vm PATH_TO_JVM 选项启动 Eclipse。(理论上)

Hope this helps.

希望这可以帮助。

回答by Kai

The browser add on can be disabled per browser, you can copy and re-set your PATH variable and the JAVA_HOME variable, and you can disable the updater in the Java app in the Control Panel of Windows. Registry entries are generally harmless but not too hard to remove.

可以为每个浏览器禁用浏览器插件,您可以复制和重新设置 PATH 变量和 JAVA_HOME 变量,还可以在 Windows 控制面板的 Java 应用程序中禁用更新程序。注册表项通常是无害的,但不是很难删除。

Also, you could just uninstall after you use it.

此外,您可以在使用后卸载它。

回答by McDowell

You can run Eclipse by copying the JRE into the eclipse/jredirectory (wiki documentation).

您可以通过将 JRE 复制到eclipse/jre目录(wiki 文档)中来运行 Eclipse 。

The JRE is distributed with the Java JDK(/path/jdk1.6xxx/jre). The JDK uses an installer, but you can just copy this directory from another machine, install and uninstall the JDK or whatever.

JRE 随Java JDK( /path/jdk1.6xxx/jre)一起分发。JDK 使用安装程序,但您可以从另一台机器复制这个目录,安装和卸载 JDK 或其他任何东西。

回答by Thorbj?rn Ravn Andersen

The IBM Development Kit for Eclipse is exactlywhat you ask for. Eclipse with an JRE bundled in ready to use.

IBM Development Kit for Eclipse正是您所需要的。Eclipse 与 JRE 捆绑在一起,随时可用。

http://www.ibm.com/developerworks/java/jdk/eclipse/

http://www.ibm.com/developerworks/java/jdk/eclipse/

(For the record it is an IBM JVM).

(根据记录,它是一个 IBM JVM)。

Registration is necessary (urgh).

注册是必要的(urgh)。