You need to configure the path to your sources.
From the javacomplete documentation:
3. Set classpath using the following function: >
javacomplete
javacomplete
javacomplete
Another two variables will be used if they are existing:
|g:java_classpath| global classpath
|b:classpath| associated with current buffer
I added the following to my .vimrc to automatically complete Android projects:
if filereadable('AndroidManifest.xml')
call javacomplete
call javacomplete
endif
, :
javacomplete#AddClassPath jar,- ,