title: Could not find the main class: org.glassfish.admin.cli.AsadminMain
body: <p>I was trying to make a web application. I generated maven web app using NetBeans 7.0.1. And when I try to open this app through Intellij Idea I have following exception. Can someone to explain what could be the problem.</p>
  
  <p>C:\glassfish-4.0\glassfish4\glassfish\bin\asadmin.bat start-domain --debug domain1
  Detected server admin port: 4848
  Detected server http port: 8080
  [2014-01-05 12:05:55,093] Artifact mobiles:war exploded: Server is not connected. Deploy is not available.
  java.lang.UnsupportedClassVersionError: org/glassfish/admin/cli/AsadminMain : 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)
  Could not find the main class: org.glassfish.admin.cli.AsadminMain. Program will exit.
  Exception in thread "main"</p>