Mac OS X+ASPECTJ+JDK 8, reported invalid byte tag in constant pool:18 workaround

Source: Internet
Author: User

The problem is also very silent, yesterday reinstall Mac OS X, and then install the JDK, do not want to install JDK 8, and then start the experiment, the results are similar to the following exception:

Org.aspectj.apache.bcel.classfile.ClassFormatException:File: ' Java.util.Comparator ': Invalid byte tag in constant Pool:18

look, feel like the JDK version caused the problem, so you want to switch to JDK 7, here is a brief talk about how to uninstall the JDK in Mac OS X, as described here:http://docs.oracle.com/javase/7/docs/ Webnotes/install/mac/mac-jdk.html, you should first navigate to:/library/java/javavirtualmachines/Here, then combine the specific JDK version, enter:

sudo rm-rf jdk1.8.0_11.jdk/

You can delete the JDK and replace it with JDK 7, which is really not the problem. These version of the problem is really no language, hehe.

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.