Java Netbeans:“包不存在" [英] Java Netbeans: 'Package does not exist'

查看:95
本文介绍了Java Netbeans:“包不存在"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码有问题,即使它没有以任何方式修改.它只是突然抛出了这个消息.正如您在左侧看到的,它们都在正确的包中,并且具有正确的名称.
我该怎么做才能解决这个问题?

I have a problem with my code, even though it hasn't been modified in any way. It just suddenly threw this message. As you can see on the left, that they are all in the correct package, and have correct names.
What can I do to fix this problem?

推荐答案

清除缓存以修复它.在 Windows 中,缓存位于:

Clear the cache to fix it. In Windows, cache is located at:

C:\Users\username\AppData\Local\NetBeans\...

在 Linux 上,缓存位于:

On Linux, cache is at:

/home/username/.cache/netbeans/...

清除缓存后重启netbeans.

After clearing the cache restart netbeans.

这篇关于Java Netbeans:“包不存在"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆