简体   繁体   中英

java.desktop cannot be resolved to a module

I want to import java.desktop to use a BufferedImage:

进口

But Eclipse shows me an error and says that it cannot be resolved to a module

模块错误

Although I added the JRE to the modulepath:

模块路径

I am also using Maven for the project but importing an external library works fine.

I just installed the newest version of eclipse and the error disappeared.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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