unsupported major.minor version 52.0visual studio 2015 community [closed]

0

The error image is attached

    
asked by anonymous 14.12.2016 / 21:40

1 answer

1

The version number that is shown in the error describes the version of the JRE with which the class file is compatible.

  

Unsupported major.minor version 52.0

According to the Wikipedia , the order of the reference values are:

  • Java SE 9 = 53
  • Java SE 8 = 52
  • Java SE 7 = 51
  • Java SE 6.0 = 50
  • Java SE 5.0 = 49
  • JDK 1.4 = 48
  • JDK 1.3 = 47
  • JDK 1.2 = 46
  • JDK 1.1 = 45

See more details at: The JavaTM Virtual Machine Specification 2nd edition

Version 52.0 refers to the specific version of JDK, which in this case refers to JDK 8.

To correct the problem, you should either try to run your code with a newer version of Java JRE or specify the compiler target parameter to instruct you to create code compatible with earlier versions of Java.

    
15.12.2016 / 04:18