title: Netbeans will not treat JSP as Source Level 7
body: <p>I'm trying to run a <code>.jsp</code> page I made and keep encountering this error:</p>
  
  <blockquote>
    <p>type Exception report</p>
    
    <p>message Internal Server Error</p>
    
    <p>description The server encountered an internal error that prevented it from fulfilling this request.</p>
    
    <p>exception</p>
    
    <p>org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP</p>
    
    <p>PWC6197: An error occurred at line: 27 in the jsp file: /Drupalcheck.jsp
       PWC6199: Generated servlet error:
       diamond operator is not supported in -source 1.5
         (use -source 7 or higher to enable diamond operator)</p>
    
    <p>note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.0 logs.</p>
  </blockquote>
  
  <p>The issue is that I have no clue why I'm getting it. I have the JDK set to 1.7 under Libraries and Source/Binary Format set to JDK 7 under sources.</p>
  
  <p>I am using Netbeans as my IDE.</p>
  
  <p>I've done everything from reinstalling Java to reinstalling Netbeans and have gotten nowhere.</p>