title: Changing JSP compiler version in glassfish
body: <p>I am pre-compiling my JSP pages on deploy but keep getting these error:</p>
  
  <pre><code> Caused by: org.glassfish.deployment.common.DeploymentException: JSP
   Compilation Error: org.apache.jasper.JasperException: PWC6033: Error
   in Javac compilation for JSP
  
   PWC6199: Generated servlet error: diamond operator is not supported in
  -source 1.5   (use -source 7 or higher to enable diamond operator
  </code></pre>
  
  <p>Does anyone know how to change the compiler version and or settings to resolve this? I have already instructed glassfish to use JDK7 as java home like this;</p>
  
  <pre><code>asadmin set "server.java-config.java-home=/usr/java/jdk1.7.0_09"
  </code></pre>
  
  <p>But this does not work either.</p>