如何在Eclipse中安装Java SE-20?

huangapple go评论65阅读模式
英文:

How to install Java SE-20 in Eclipse?

问题

我是Java新手,第一次使用Eclipse。我手动安装了JDK 20,但Eclipse找不到它。

我尝试过:
1- 从市场安装Java SE-20。JRE 20仍然未绑定。
2- 使用搜索功能
(C:\Program Files\Java\jdk-20\bin)

它显示

在C:\Program Files\Java\jdk-20\bin中未找到JRE

我该如何解决这个问题?

英文:

I'm new to Java and I'm using Eclipse for the first time. I installed JDK 20 manually, but Eclipse didn't find it.

I've tried:
1- Installing Java SE-20 from the marketplace. JRE 20 is still unbound.
2- Using the search function
(C:\Program Files\Java\jdk-20\bin)

and it says

No JREs found in C:\Program Files\Java\jdk-20\bin

How would I solve this?

答案1

得分: 1

howlger是对的。您需要通过Eclipse的MarketPlace下载Java 20支持插件,安装后重新启动Eclipse,一旦完成,您只需在创建新项目时更改配置。

  1. 转到帮助 -> Eclipse MarketPlace
  2. 搜索Java 20 Support for Eclipse 2023-03
  3. 安装
  4. 让Eclipse自行重新启动
  5. 使用“创建项目”更改JavaSE和Java JDK
  6. 然后您就可以开始了。
英文:

howlger was right. You need to download the Java 20 Support for Eclipse 2023-03 through MarketPlace in Eclipse, install it and then restart Eclipse, once did that you only have to change the configuration once you are creating a new project.

  1. Go to Help -> Eclipse MarketPlace
  2. Search Java 20 Support for Eclipse 2023-03
  3. Install
  4. Let Eclipse Restart itself
  5. Use create project to change the JavaSE and Java JDK
  6. And you are ready to go

huangapple
  • 本文由 发表于 2023年5月11日 07:41:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76223251.html
匿名

发表评论

匿名网友

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

确定