title: Trying to install Emacs JDEE with openjdk 6
body: <p>I am trying to get JDE to auto-complete Java code. I'm running Ubuntu and I have the following packages installed:</p>
  
  <p>openjdk-6-doc<br>
  openjdk-6-jdk<br>
  openjdk-6-jre<br>
  openjdk-6-jre-headless<br>
  openjdk-6-jre-lib<br>
  openjdk-6-source </p>
  
  <p>I installed JDEE "from source" (not from the package manager).
  I included the following in my .emacs, as suggested in another thread here (I checked the directories do exist and seem to have the right content installed with the packages above):</p>
  
  <pre><code>;;JDEE
  (add-to-list 'load-path "/usr/share/emacs/site-lisp/jdee-2.4.0.1/lisp")
  
  (setq
   jde-bug-debugger-host-address "127.0.0.1"
   jde-bug-jre-home "/usr/lib/jvm/java-6-openjdk"
   jde-compile-option-debug (quote ("all" (t nil nil)))
   jde-debugger (quote ("jdb"))
   jde-global-classpath
     (quote ("." "/usr/share/java/" "/usr/lib/jvm/java-6-openjdk/"))
   jde-jdk-doc-url "/usr/share/doc/openjdk-6-doc/html/api/index.html"
   jde-jdk-registry (quote (("1.6.0" . "/usr/lib/jvm/java-6-openjdk")))
   jde-jdk (quote ("1.6.0"))
   jde-regexp-jar-file "/usr/share/java/regexp.jar"
   jde-sourcepath (quote (".")))
  
  (require 'jde)
  </code></pre>
  
  <p>When editing a .java file, functions like M-x jde-compile work fine, local classes appear in speedbar, there is autocompletion for local classes BUT not for : for example if I type the following: </p>
  
  <pre><code>import java.io.*;
  import java.lang.*;
  public class foo {
    private String bar;
    public static void main(String args[]) {
      System.o
    }
  }
  </code></pre>
  
  <p>And the cursor is at 'System.o', no completion is suggested, even when I try M-x semantic-ia-complete-symbol-menu. (The message says "Cannot find types for "System"").</p>
  
  <p>If I type 'hello.' the menu gives me two sugestions: main or bar</p>
  
  <p>I noticed that all the java (io, lang...) class files are compressed in /usr/lib/jvm/java-6-openjdk/src.zip and tried to uncompress it, with no results in emacs.</p>
  
  <p>What am I missing?</p>
  
  <p>Thank you!</p>