Java Netbeans: 'Package does not exist'
问题 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? 回答1: Clear the cache to fix it. In Windows, cache is located at: C:\Users\username\AppData\Local\NetBeans\... On Linux, cache is at: /home/username/.cache/netbeans/... After clearing the cache restart netbeans. 回答2: If clearing the cache still doesn't