Search code examples
javanetbeansjdic

NetBeans error: package org does not exist


I just installed Netbeans IDE. I am now unable to import any org.* libs and it just says package org does not exist. Also, I imported jdic.jar into the project and even though the code completion suggestions show up as org.jdesktop.*, it shows the same error.

How do I fix this?


Solution

  • Clearing the cache fixed it. In windows 7 the cache is located in

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

    On Linux, the cache is at:

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

    On clearing the cache, and restarting netbeans, it started to recognize org.* imports again.