One day, after starting Eclipse 3.2, I noticed astonished that the autocomplete feature for Java classes did not work anymore. On pressing Ctrl+Space the popup list did appear, but it was always empty. This was a time of great mourning since autocomplete is one of the killer features of Eclipse.

So what was the problem? In the evening of the previous day, I did some reorganizing on my computer and moved the Eclipse workspaces to another drive (my operating system being Windows XP). It seems that this alone made Eclipse fail the autocompletion.

QUICK FIX: Create a new workspace on the new desired location and import the projects from the old workspace. Do not forget to check the “Copy projects into workspace” checkbox so that the projects get copied to the new workspace directory. From this point on autocomplete should be back on its feet.

36 responses to “Eclipse Java Autocompletion Not Working

  1. There is an easier way to do this:

    Go Preferences>Java>Editor>Content Assist>Advanced

    Make sure “Other Java Proposals” is ticked

  2. Thanks Phil, that also helps and it’s much easier (don’t need to set other properties again, eg. server settings).

    Cheers,
    Greg

  3. Hey, run across the same sort of problem, where the autocomplete works for all the primitive and more common types (found, i suspect in the JDK things i downloaded last night), but NOT for custom classes. This can be a nightmare when there are many other people working on a project and there’s not enough time to drag oneself through all the code to find the correct method. Checked to see whether the Other Java Proposals are ticked. Any help would be appreciated!

    Cheers!

  4. Hey Mark,
    I had the same problem. My solution was to activate the proposals for types.

    Like Phil said go Preferences>Java>Editor>Content Assist>Advanced and set the flag to “Type Proposals” too. This works fine for me. Maybee it will help you too.
    Cheers, Joerg

  5. I am running with the problem same as above, where autocomplete is not working. I tried with all the tips from above chain of mail. unfortunately non of them solved my problem. Any help will be really appreciated.

    Thanks,
    Deepak

  6. Thank you very much, I had the same problem and first thought that it had something to do with Ubuntu/Gutsy. Very glad for this simple solution by changing the “Type Proposals” – flag.

    Thanks,

    Christoph

  7. Thank you Very,
    I had the same problem and I just ticked the “Type Proposal” and “Other Java Proposals” and it works. Like they say “Simplicity is the Ultimate Sophisitcation”

  8. I had the same problem.
    In addition, even the “organize imports” command did not work for custom classes.
    The solutions proposed above did not solve my problem.

    I just did a “close project”/”open project”. And it worked.
    Eclipse reloads the classes index at this moment.

    Note that “clean project…” doesn’t work.

    I hope this is going to help someone.

  9. Still helping people after 2 years. This fixed my auto-complete problems in Eclipse v3.4. I’m not sure how those got unchecked…

  10. yay Phil thanks for your post, it worked for me!

    I can’t work without content assist.

    Quoting Phil:
    —————————-
    There is an easier way to do this:

    Go Preferences>Java>Editor>Content Assist>Advanced

    Make sure “Other Java Proposals” is ticked

  11. Got same problem.
    I upgraded to eclipse 3.4 (from 3.2) and opened up a workspace created using 3.2. Auto-completion was gone.
    Tried “Preferences>Java>Editor>Content Assist>Advanced>Other Java Proposals” option, but it did not work.
    Then I closed and re-opened the project, and it worked :-) :-).

    Thanks to Phil and Nicolog.

  12. Thanks.. I face this issue when I changed my laptop. I downloaded the Eclipse 3.2 and saw that auto help is not working. I was thinking plugins are missing.. but this page helped.. Thanks again to all

  13. Thanks,for solution,

    Create a new workspace on the new desired location and import the projects from the old workspace. Do not forget to check the “Copy projects into workspace” checkbox so that the projects get copied to the new workspace directory.

  14. Thanks. Enabling the task proposals did the trick. But it dint actually start working until I executed the project> Clean command.

    Thanks to everybody.

  15. There is another solution you can try:
    Configure Eclipse’s content assist, go “Preferences>Java>Editor>Content Assist>Advanced“. Make sure “Other Java Proposals” is ticked
    this helped me… :-)

  16. thanks Man.
    “Preferences>Java>Editor>Content Assist>Advanced“ and tick java type proposal worked perfectly for me.

  17. Yes!
    This is awsome! I didn’t even know that Eclipse supported autocompletion. As an old VisualStudio user I really missed this function. Now my Java development will be much smoother.

    Thanks a lot

Leave a Comment:

Your email address will not be published. Required fields are marked *