英文:
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,一旦完成,您只需在创建新项目时更改配置。
- 转到帮助 -> Eclipse MarketPlace
- 搜索Java 20 Support for Eclipse 2023-03
- 安装
- 让Eclipse自行重新启动
- 使用“创建项目”更改JavaSE和Java JDK
- 然后您就可以开始了。
英文:
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.
- Go to Help -> Eclipse MarketPlace
- Search Java 20 Support for Eclipse 2023-03
- Install
- Let Eclipse Restart itself
- Use create project to change the JavaSE and Java JDK
- And you are ready to go
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论