I'm using Emacs 23.2. Here's how I'm loading semantic:
(setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
global-semanticdb-minor-mode
global-semantic-idle-summary-mode
global-semantic-mru-bookmark-mode))
(semantic-mode 1)
So, if I create a simple java file and visit it, I get code completion for locally defined methods and classes. But I can't figure out how to make semantic aware of jdk libraries. For example, if I try semantic-ia-complete-symbol
on a String variable, I get Cannot find types for 'String blah'
.
Does anyone know how to load the jdk libraries into semanticdb so code completion of standard object types like String are available?