title: Using jasperstarter to compile and run iReport "java.lang.UnsupportedClassVersionError"
body: <p>Basically what I want to do is create a PDF from a iReport jrxml or jasper file.</p>
  
  <p>The idea is to use this for reports over the net and the best solution I managed to find was to use a program like <a href="http://jasperstarter.sourceforge.net/" rel="nofollow">jasperstarter</a> and then run the report with a connection to MSSQL database. </p>
  
  <p>To get the connection going I had to download the latest net.sourceforge.jtds.jdbc.Driver.</p>
  
  <p>The report works fine using iReport 5.1 but when I do follow the instructions from jasperstarter I get an "java.lang.UnsupportedClassVersionError" response.</p>
  
  <h2>jasperstarter command</h2>
  
  <pre><code>jasperstarter pr -t generic -f pdf -i test_report.jasper -o test -u username -p       password --db-driver net.sourceforge.jtds.jdbc.Driver --db-url jdbc:jtds:sqlserver://LOCAL-PC/Demo_DB
  </code></pre>
  
  <h2>output</h2>
  
  <pre><code>Exception in thread "main" java.lang.UnsupportedClassVersionError: net/sourcefor
  ge/jtds/jdbc/Driver : Unsupported major.minor version 51.0
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClassCond(Unknown Source)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$000(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Unknown Source)
          at de.cenote.jasperstarter.Db.getConnection(Db.java:69)
          at de.cenote.jasperstarter.Report.fill(Report.java:220)
          at de.cenote.jasperstarter.App.processReport(App.java:222)
          at de.cenote.jasperstarter.App.main(App.java:107)
  </code></pre>
  
  <p>Please advice.</p>