In the root diectory of JDK source code, run the following command.
ctags -R --languages=java --exclude=com --exclude=sunw .
Only java and javax:
ctags -R --languages=java --exclude=com --exclude=sunw --exclude=sun --exclude=launcher --exclude=org .
Add the following line to .vimrc
autocmd BufRead,BufNewFile *.java setlocal tags=/home/jing/data/road/java/java-1.6.0_15/tags