Mac 10.11 Fix java.lang.UnsupportedClassVersionError:Unsupported Major.minor version issue

Source: Internet
Author: User
Tags unsupported java se


问题:ox x 10.11中的terminal里输入apktool显示java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0问题
原因:系统java仍然是java 1.6,但apktool要求至少是java 1.7,仅仅从官网上下载安装java是没用的

java版本号:
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

Workaround:
Tried a lot of methods, all useless, only the following useful
Download and install the new version of Java on the official website and enter the following command in terminal
Export java_home="/library/internet plug-ins/javaappletplugin.plugin/contents/home"

Mac 10.11 Fix java.lang.UnsupportedClassVersionError:Unsupported major.minor version issue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.