title: Can't import java libraries with matlab
body: <p>I am running a matlab function which uses the LinkedList class from java. But when I run the script I get the following error:</p>
  
  <pre><code>Undefined function or variable 'LinkedList'.
  
   Error in (line 6)
   Q = LinkedList();
  </code></pre>
  
  <p>In the beggining of the code I do the following</p>
  
  <pre><code>import java.util.LinkedList
  Q = LinkedList();
  </code></pre>
  
  <p>I think matlab is not founding java library files. Java is installed on my computer as the following command on my linux machine shows:</p>
  
  <pre><code>update-java-alternatives -l
  java-1.7.0-openjdk-amd64 1051 /usr/lib/jvm/java-1.7.0-openjdk-amd64
  </code></pre>
  
  <p>I am using the command line matlab.</p>
  
  <p>What I missed here?</p>