Looking for software experts?
Need an expert advice on software development? Need consulting work done in time and at high standards? Tremend has the right solution for you.

We can provide expertise in:
  •    » high traffic and complex content website infrastructures using Java, PHP or .NET. More here ...
  •    » mobile applications for iPhone, Android or J2ME. More here ...

For an enquiry, send an email to contact [at] tremend [dot] ro.

Eclipse Java Autocompletion Not Working

October 19th, 2006 by Robert Enyedi in Java, General

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 to 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.

DZoneGoogle ReaderYahoo MessengerRedditEmailDelicious

Related posts

  • Intellij Idea versus Eclipse – part II
    >> 10 reasons why Eclipse is better Most of the following are not checked in Idea 6.0 which is anyways in beta. They refer to 4.x and 5.x Idea versions. 1. The visual editor - one feature that...
  • Intellij Idea versus Eclipse – part I
    >> 10 reasons why Idea is better In this part I'm focusing on advantages of Idea over Eclipse. I plan for a 2nd part to check out the other side - advantages when using Eclipse over Idea. This...
  • Develop with pleasure – IntelliJ Idea 6.0 Beta
    IntelliJ's Idea 6.0 Beta is out and available free for evaluation. Most expected features were GWT support, TeamCity integration, UI designer enhancements and productivity/editing features. I have not...
  • New uses of the OSGi plug-in model
    I grew accustomed to the OSGi plugin model having developed some Eclipse plugins and RCP applications. I found it reasonably simple and useful because it allows Java code isolation and management at a...
  • NotSerializable exception: PersonManagerImpl
    I recently stumbled across a NotSerializableException in the project I was working, and I decided to share this experience with you because the cause of the problem it's quite interesting and some of you...
.

36 Responses

  1. Monica Agarwal Says:

    Thanks, that helped!

  2. Zhivko Says:

    That helped me too.

    Thanks!

  3. Phil Says:

    There is an easier way to do this:

    Go Preferences>Java>Editor>Content Assist>Advanced

    Make sure “Other Java Proposals” is ticked

  4. Greg Says:

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

    Cheers,
    Greg

  5. Mark Says:

    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!

  6. Joerg Says:

    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

  7. Millian Says:

    Thanxs Phill. Resolved, but Eclipse su*ks anyway.

  8. deepak Says:

    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

  9. Christoph Says:

    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

  10. Oshima Says:

    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”

  11. Greg Says:

    Thanks for the blog post. I was having the exact same problem.

  12. Nicolog Says:

    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.

  13. Jakob Says:

    Thanks, that quick-fixed my problem too.

  14. Anuj Says:

    thanks .
    Editor–> Advanced-> Content Assist –> Other Java proposal did the trick for me .

  15. Zerted Says:

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

  16. justin simonelis Says:

    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

  17. Vajahat Ali Says:

    Hello , the content assist doesn’t show all the proper options that it must have :(
    The only solution is to make a new Workspace
    Regrads,
    Vajahat Ali
    Pakistan

  18. Michael Laccetti Says:

    Two years on, and still good info. Cheers!

  19. Sajad Says:

    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.

  20. Simon Says:

    raise your hands to thank Robert and Phil!

  21. David Says:

    Phil, many thanks!
    Why isn’t this enabled by default……

  22. ferhat Says:

    Editor–> Advanced-> Content Assist –> Other Java proposal worked well in my eclipse. thank you very much

  23. eduardo Says:

    thanks… quick and easy fix

    many tks again!!

  24. Sandeep Rana Says:

    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

  25. Sagar Jauhari Says:

    By default, in Ubuntu 10.10, the Eclipse doesn’t auto-complete and shows an empty ctrl+space list. Checking the ‘type proposal’ flags removed this error. Thanks.

  26. Deepa Haswani Says:

    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.

  27. Renaud Says:

    Thanks, going to Preferences did the trick

  28. Sujie Says:

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

    Thanks to everybody.

  29. Ajay Shah Says:

    I have used all these ways but ,but for few minute then again auto suggest disable for Eclispe Heloisis

  30. aditi Says:

    thanks

  31. xueding Says:

    Thnaks,
    preference->java->Editor->Advance->Restore defaults
    its OK.

  32. Fisicus Says:

    Thanks man, worked like a charm!

  33. Hrvoje Says:

    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… :-)

  34. Shoeb Says:

    Thanks this really helped a lot !!! *Sigh*

  35. vimal Says:

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

  36. PanDroid Says:

    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

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.