unsupported-class-version

java.lang.UnsupportedClassVersionError Unsupported major.minor version 51.0 [duplicate]

元气小坏坏 提交于 2019-11-26 19:30:03
Possible Duplicate: unsupported major .minor version 51.0 I am trying to build an application, but it gives some error. My JDK version is given below: java version "1.6.0_30" Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing) Here is my Error Log: Buildfile: build.xml compile: [echo] Compiling the service.... [echo] ...mkdir for classes first.... [echo] ...java classes next.... [echo] ...mkdir for generated code next.... [echo] ...generate stubs/skeletons next.... [wscompile] command line: wscompile -d /home/vivekray/program

Maven Installation OSX Error Unsupported major.minor version 51.0

我只是一个虾纸丫 提交于 2019-11-26 18:55:36
问题 I installed maven by following this steps:(a tutorial) JAVA_HOME=/Library/Java/Home export M2_HOME=/Users/steven/zimmermann/maven export M2=$M2_HOME/bin export PATH=$M2:$PATH echo $JAVA_HOME echo $M2_HOME echo $M2 echo $PATH nano .bash_profile then I wrote the echo in the .bash_profile sth like this: JAVA_HOME=/usr/libexec/java_home M2_HOME=/path/to/your/apache-maven-3.x.x M2=/path/to/your/apache-maven-3.x.x/bin PATH=/path/to/maven/bin:/$….bla-bla-bla… and also I wrote this in the .bashrc

java.lang.UnsupportedClassVersionError Unsupported major.minor version 51.0 [duplicate]

泪湿孤枕 提交于 2019-11-26 06:58:52
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: unsupported major .minor version 51.0 I am trying to build an application, but it gives some error. My JDK version is given below: java version \"1.6.0_30\" Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing) Here is my Error Log: Buildfile: build.xml compile: [echo] Compiling the service.... [echo] ...mkdir for classes first.... [echo] ...java

Unsupported major.minor version 52.0 [duplicate]

我与影子孤独终老i 提交于 2019-11-25 23:56:46
问题 This question already has an answer here: How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version 48 answers Pictures: Command Prompt showing versions Picture of error Hello.java import java.applet.Applet; import java.awt.*; public class Hello extends Applet { // Java applet to draw \"Hello World\" public void paint (Graphics page) { page.drawString (\"Hello World!\", 50, 50); } } Hello.html <HTML> <HEAD> <TITLE>HelloWorld Applet</TITLE> </HEAD> <BODY> <APPLET CODE=

Exception in thread “main” java.lang.UnsupportedClassVersionError: a (Unsupported major.minor version 51.0) [duplicate]

让人想犯罪 __ 提交于 2019-11-25 21:36:09
Possible Duplicate: unsupported major .minor version 51.0 I installed JDK7, a simple hello word program gets compile but when I run this I got following exception. Exception in thread "main" java.lang.UnsupportedClassVersionError: a (Unsupported major.minor version 51.0) at java.lang.ClassLoader.defineClass0(Native Method) 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$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source)