简体   繁体   English

如何在eclipse中安装java 1.8

[英]How to install java 1.8 in eclipse

I hava a mac and It has java JVM 1.6 that I use in eclipse kepler and I want to update the JVM to 1.8.我有一台 mac,它有我在 eclipse kepler 中使用的 java JVM 1.6,我想将 JVM 更新到 1.8。 How do I do that?我怎么做?

Install the JDK on your OS.在您的操作系统上安装 JDK。

Then, check the preferences and look for Java->Installed JREs.然后,检查首选项并查找 Java->Installed JREs。 Click add.点击添加。 (On Windows, it is Windows->Preferences, or Eclipse->Preferences on a Mac). (在 Windows 上,它是 Windows->Preferences,或 Eclipse->Preferences 在 Mac 上)。

Simply install it (eg https://askubuntu.com/questions/464755/how-to-install-openjdk-8-on-14-04-lts )只需安装它(例如https://askubuntu.com/questions/464755/how-to-install-openjdk-8-on-14-04-lts

Then add it to the JDK selection in Preferences/Java/Installed JREs:然后将其添加到 Preferences/Java/Installed JREs 中的 JDK 选择中:

在此处输入图片说明

You may have to search for the JDK path (eg in /usr/lib/java or /Libraries/java)您可能需要搜索 JDK 路径(例如在 /usr/lib/java 或 /Libraries/java 中)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM