search

Home  >  Q&A  >  body text

java - Unsupported major.minor version 52.0 是什么原因?

用eclipse run as 时报这个错了,遂cmd看了下,两哥们版本一样啊,所以就蒙了?请万能的网友帮帮忙

PHPzPHPz2887 days ago506

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:32:21

    It may be that the jar package compiled by a higher version of java is relied on, and the java version used at runtime is not high enough. It may not be a problem with your own code, it may be a dependent jar package

    reply
    0
  • 迷茫

    迷茫2017-04-17 17:32:21

    A jar package referenced by java was compiled using "-target version"

    http://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html

    reply
    0
  • 阿神

    阿神2017-04-17 17:32:21

    http://blog.sina.com.cn/s/blog_64ecfc2f0102uxu6.html

    reply
    0
  • PHPz

    PHPz2017-04-17 17:32:21

    Changed to jdk1.8 and the problem was solved. It’s a painful version

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:32:21

    I also encountered this problem two days ago. After thinking about it, I seemed to have updated the Android N SDK and tried to delete the N SDK. Now I don’t have this problem. I don’t know if it is the same as you.

    reply
    0
  • Cancelreply