title: The type JList is not generic;
body: <p>So I'm working on a project with java in Eclipse. I've been working on it for so long and i only had a few Errors left. They were just some library issues. Now after i've fixed them, suddenly 48 errors popped up. Most of the are the same. One of them is the following: </p>
  
  <blockquote>
    <p>The type JList is not generic; it cannot be parameterized with arguments >String></p>
  </blockquote>
  
  <p><strong>This Error is on a few lines and I'm just going to add one in here:</strong></p>
  
  <pre><code>private JList&lt;String&gt; list = new JList&lt;String&gt;(listModel);
  </code></pre>
  
  <p>So i've done some research. I've found someone that had the same issue but he could fix it with a java update. So i've tried that to. I've updated Java on my Ubuntu VM to the latest (i think). with the following command:</p>
  
  <pre><code>sudo apt upgrade default-jre
  </code></pre>
  
  <p>I don't know what the issue is, so i would be so grateful for someone to help me!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>So i found out that all the 48 Errors have something to do with the JList. I'm not sure if this helps someone out resolving this.</p>