Enum is not supported when multiple JDK compilations are IDEA14, and multiple project sharing references an external package for each module under one workplace

Source: Internet
Author: User
  • Idea how multiple projects are managed in one project:

Put multiple items in a called work directory, then open the IntelliJ idea compiler, click on the menu File->open ..., Select the work directory just, You Can.

  • How do you manage multiple projects that are open in a single workplace?

File->project Structure., Open Modules find multiple project listings, select each list to switch jdk, reference external jar, add external modules reference, etc., which is somewhat like the Add app feature of vs.

  • Syntax level configuration

When we installed the idea (jdk1.8 x64), I installed the jdk1.7 (x86), and after opening the project, I found that the enum type in the code was completely out of use, and it looked like the enum type was not Recognized. After watching the internet said 1.5, and began to support the enum, how can it not recognize the type?!!

Later viewed Open->project Structure., Open the Project tab under Project settings and discover that the syntax level is configured with 1.3:

Available options are available:

After switching to 8, the problem is Resolved.

Enum is not supported when multiple JDK compilations are IDEA14, and multiple project sharing references an external package for each module under one workplace

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.