C:\Program Files (x86)\Red5>SETLOCAL
C:\Program Files (x86)\Red5>if NOT DEFINED RED5_HOME set RED5_HOME=C:\Program Fi
les (x86)\Red5\
C:\Program Files (x86)\Red5>if NOT DEFINED RED5_MAINCLASS set RED5_MAINCLASS=org
.red5.server.Bootstrap
C:\Program Files (x86)\Red5>if NOT DEFINED JAVA_HOME goto err
C:\Program Files (x86)\Red5>REM JAVA options
C:\Program Files (x86)\Red5>REM You can set JAVA_OPTS to add additional options
if you want
C:\Program Files (x86)\Red5>REM Set up logging options
C:\Program Files (x86)\Red5>set LOGGING_OPTS=-Dlogback.ContextSelector=org.red5.
logging.LoggingContextSelector -Dcatalina.useNaming=true
C:\Program Files (x86)\Red5>REM Set up security options
C:\Program Files (x86)\Red5>REM set SECURITY_OPTS= -Djava.security.debug=failure
-Djava.security.manager -Djava.security.policy="C:\Program Files (x86)\Red5/con
f/red5.policy"
C:\Program Files (x86)\Red5>set SECURITY_OPTS=-Djava.security.debug=failure
C:\Program Files (x86)\Red5>set JAVA_OPTS=-Dlogback.ContextSelector=org.red5.log
ging.LoggingContextSelector -Dcatalina.useNaming=true -Djava.security.debug=fail
ure
C:\Program Files (x86)\Red5>set JYTHON_OPTS=-Dpython.home=lib
C:\Program Files (x86)\Red5>set RED5_CLASSPATH=C:\Program Files (x86)\Red5\boot.
jar;C:\Program Files (x86)\Red5\conf;.;C:\Program Files (x86)\Java\jdk1.6.0_43/l
ib/dt.jar;C:\Program Files (x86)\Java\jdk1.6.0_43/lib/tools.jar
C:\Program Files (x86)\Red5>if NOT DEFINED RED5_OPTS set RED5_OPTS=
C:\Program Files (x86)\Red5>goto launchRed5
C:\Program Files (x86)\Red5>echo Starting Red5
Starting Red5
C:\Program Files (x86)\Red5>"C:\Program Files (x86)\Java\jdk1.6.0_43\bin\java" -
Dpython.home=lib -Dlogback.ContextSelector=org.red5.logging.LoggingContextSelect
or -Dcatalina.useNaming=true -Djava.security.debug=failure -cp "C:\Program File
s (x86)\Red5\boot.jar;C:\Program Files (x86)\Red5\conf;.;C:\Program Files (x86)\
Java\jdk1.6.0_43/lib/dt.jar;C:\Program Files (x86)\Java\jdk1.6.0_43/lib/tools.ja
r" org.red5.server.Bootstrap
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/red5/serv
er/Bootstrap : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.red5.server.Bootstrap. Program will exit.
C:\Program Files (x86)\Red5>goto finally
C:\Program Files (x86)\Red5>ENDLOCAL
C:\Program Files (x86)\Red5>pause
怎么解决的呢