I can\'t get autocompletion to work on Eclipse.
I\'m working on the project on svn. I set up project in Eclipse by going into
File -> Import -> Checkout As
Your source files should be in a structure with a 'package' icon in the Package Explorer view (in the menu under Window > Show View > Package Explorer or press Ctrl+3 and type pack), like this:
If they are not, select the folder containing your root package (src in the image above) and select Use as Source Folder from the context menu (right click).
I had same issue after importing maven project consisting of nested micro services. This is how I got it resolved in Eclipse:
When you have a multimodules maven project under a parent project, make sure you're not editing the file in the maven parent project.
If you're a beginner (like me), the solution may be as simple as making sure the parent folder that the file you're working in is a Java project.
I made the mistake of simply creating a Java folder, then creating a file in the folder and expecting it to work. The file needs to live in a project if you want to avoid this error.
Hope it helps
This is what was missing in my .project file:
<projectDescription>
...
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildspec>
...
...
...
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
...
</projectDescription>