title: Error : Could not find the main class: org.apache.solr.util.SolrCLI
body: <p>When I starting solr-5.1.0 in Ubuntu by,</p>
  
  <pre><code>/bin/var/www/solr-5.0.0/bin ./solr start
  </code></pre>
  
  <p>I get an error as below,</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/solr/util/SolrCLI : Unsupported major.minor version 51.0
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
  at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
  
  Could not find the main class: org.apache.solr.util.SolrCLI. Program will exit.
  
  SolrCloud example running, please visit http://localhost:8983/solr
  </code></pre>
  
  <p>But I have found solution to upgrade java to 1.7 or above. I have installed 1.8 version. But till now I got an error.</p>
  
  <p>What to do? Help me in this please</p>