title: Glassfish whont start on linux server
body: <p>First i am a total novice at linux so dont hate. I have done the same thing on windows may times and always gotten it to work. Trying on a linux box for the first time.</p>
  
  <p>1)I have installed Glassfish 4 which needs JDK7 or higher.</p>
  
  <p>2)I installed JDK 8</p>
  
  <p>3)I set JAVA_HOME to the JDK</p>
  
  <p>4)I unziped Glassfish.</p>
  
  <p>When i run the following </p>
  
  <pre><code>glassfish4/bin/asadmin
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
          at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
          at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  </code></pre>
  
  <p>What to do.</p>
  
  <p>I have seen this before and solution has been to set the JDK path. But i cant find anywhere where i am to set the path. <strong><code>asenv.conf</code></strong> ?</p>