title: Eclipse PDE: Syntax error, type annotations are available only when source level is at least 1.8
body: <p>I am having hundreds of the same error: <code>Syntax error, type annotations are available only when source level is at least 1.8</code> after installing the <a href="http://www.eclipse.org/windowbuilder/" rel="nofollow">WindowBuilder</a> Eclipse plug-in. My setup is with Java 7, and I cannot upgrade to Java 8 yet. I have Java 7 and 8 installed, but my JRE and compiler are set to Java 7 via <code>Window &gt; Preferences &gt; Java</code>. </p>
  
  <p>I believe that I found the problem, which is related to the <code>org.eclipse.jdt.annotation</code> plug-in, described here:
  <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=434033" rel="nofollow">https://bugs.eclipse.org/bugs/show_bug.cgi?id=434033</a></p>
  
  <p>Any suggestions on how to fix this problem?</p>
  
  <p>I noticed that I now have two <code>org.eclipse.jdt.annotation</code> plug-ins, versions <code>1.1.0</code> and <code>2.0.0</code>. The problem is that <code>2.0.0</code> has a dependency on Java 1.8, and all of my plugins are referencing <code>2.0.0</code>. I believe that changing these references to the earlier version should solve this, correct? How can I do this?</p>
  
  <p>As a test, I altered my manifest file on one of my plug-in projects, but it does not remove the errors. Here is an excerpt where I tried to reference the <code>1.1.0</code> bundle version:</p>
  
  <pre><code>Require-Bundle: org.eclipse.ui,
   org.eclipse.core.resources,
   org.eclipse.core.runtime,
   org.eclipse.jdt.core,
   org.eclipse.ltk.core.refactoring,
   org.eclipse.jdt.ui,
   com.kivancmuslu.www.solstice.common,
   com.kivancmuslu.www.util.eclipse,
   com.kivancmuslu.www.util.eclipse.ui,
   org.eclipse.ui.workbench.texteditor,
   org.eclipse.ui.ide,
   org.eclipse.ui.editors,
   org.eclipse.jface.text,
   com.kivancmuslu.www.utils,
   org.eclipse.ui.console,
   org.eclipse.jdt.annotation;bundle-version="1.1.0"
  </code></pre>
  
  <p><strong>UPDATE</strong>
  Yes, I am running Luna. After changing the last line of my manifest from </p>
  
  <pre><code> org.eclipse.jdt.annotation;bundle-version="1.1.0"
  </code></pre>
  
  <p>to</p>
  
  <pre><code> org.eclipse.jdt.annotation;bundle-version="[1.1.0,2.0.0)"
  </code></pre>
  
  <p>the errors are gone. Thank you.</p>