caused by:java.lang.IllegalArgumentException

Source: Internet
Author: User

caused By:java.lang.IllegalArgumentException is because the JDK is high and the project needs a low version of the problem

1. Transfer the language level of idea or idea to a version that is appropriate for your project, such as installing a 1.8 project that requires 1.6 of the environment so that the local run should be no problem (it has not been tried before) do not use Maven to pack before you add this step So idea will use your bag to make the error.

2. If you want to resolve the server escalation such errors in the Pom file add the following: So even if the bag is not a problem

Pom file riga

<build>
<finalName>xxxxxx</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>

<configuration>
<!--The following is a revision of the JDK version of our compilation, even after a high version of the JDK, the package compilation will be performed according to the version of your settings.
<!--use the Java 6 language Features--
<source>1.6</source>
<!--want the compiled classes to being compatible with JVM 1.6-
<target>1.6</target>
<!--the-encoding argument for the Java compiler. -
<encoding>UTF8</encoding>
</configuration>

   </plugin>

</plugins>
</build>

Caused by:java.lang.IllegalArgumentException

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.