简体   繁体   English

java.desktop 无法解析为模块

[英]java.desktop cannot be resolved to a module

I want to import java.desktop to use a BufferedImage:我想导入 java.desktop 以使用 BufferedImage:

进口

But Eclipse shows me an error and says that it cannot be resolved to a module但是 Eclipse 向我显示一个错误并说它无法解析为模块

模块错误

Although I added the JRE to the modulepath:虽然我将 JRE 添加到了模块路径中:

模块路径

I am also using Maven for the project but importing an external library works fine.我也在项目中使用 Maven 但导入外部库工作正常。

I just installed the newest version of eclipse and the error disappeared.我刚刚安装了最新版本的 eclipse 并且错误消失了。

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

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