Solution idea startup times wrong: Java 1.8 or later is Required.__java

Source: Internet
Author: User

The Jre7 and Jre8 are installed under Ubuntu, and when you use Update-alternatives--config java to set the default JRE to Jre7, start idea Error: * * * Java 1.8 or later is required.

You can use Update-alternatives--config java to set the default JRE to Jre8, but my Java project needs to be compiled and run in JDK7 environment.

After testing, you can let idea run under Jre8 without changing the system's default JRE (Jre7).

If it is a 64-bit jdk8, then: Export IDEA_JDK_64=[JDK8 Installation path]

If it is a 32-bit jdk8, then: Export IDEA_JDK=[JDK8 Installation path]

Then you can start idea on it.

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.