Unsupported major.minor version 52.0visual studio 2015 community

Asked

Viewed 248 times

0

The image of the error is attached inserir a descrição da imagem aqui

1 answer

1


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

Unsupported major.minor version 52.0

According to the Wikipedia, the order of reference of the 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 on: 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 fix the issue, you should 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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.