George's profileWelcome to George Birbil...PhotosBlogListsMore Tools Help

Blog


    September 08

    Repairing NetBeans support for Java code after a JDK reinstallation

    If you accidentally uninstall the JDK that you told NetBeans (during its installation) to use and then start NetBeans you'll find out that even if you reinstall that JDK at the same folder location NetBeans still doesn't work OK with Java code (can't load Java projects saying there's a missing plugin). The trick to fix this is to go to Tools/Plugins menu and at the "Installed Plugins" page activate all plugin categories that had been deactivated by NetBeans when you had started it and it didn't find the JDK.

    This took me a while to figure out, it would be better if NetBeans was saying "missing or disabled" plugin at the project open dialog instead of just saying "missing" plugin since this makes you search for uninstalled/new plugins you might be missing and thus misleads you in debugging the issue.

    *** followup: ***

    I was also pointed to http://wiki.netbeans.org/TaT_TroubleShootNBStartUp by Varun Nischal (thanks), but it isn't exactly the same issue I feel. This is my reply to Varun regarding this:

    That documentation addresses the issue of editing NetBeans configuration manually to locate the JDK. My tip was that if you start NetBeans with missing the default JDK platform you had set, then it disables many plugins required for Java development and if you reinstall JDK at the same location then although NetBeans can find it the plugins are disabled and you can’t work with Java ok (was using JavaEE stuff) getting various errors. So you can go to Tools/Plugins and at the Installed plugins page enable all the plugin categories that have been disabled and then all works fine again

     

    Comments (1)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.
    George Birbilis has turned off comments on this page.
    No namewrote:
    Hi,

    This would make a fantastic Tips & Tricks entry for our Community Documentation wiki at http://wiki.netbeans.org/CommunityDocs.

    James Branam
    NetBeans Community Docs Manager
    Sept. 8

    Trackbacks

    The trackback URL for this entry is:
    http://birbilis.spaces.live.com/blog/cns!2335BBEF59B92C54!543.trak
    Weblogs that reference this entry
    • None