Idea+gradle +springboot Project, Bootrun cannot start Project

Source: Internet
Author: User

These two days have been doing this problem, the same project on other people's machine running very well, in my this is unable to start, debug can not start. The error prompts are as follows:


Execution failed for task ': Bootrun '. > A problem occurred starting process ' command ' C:\Program Files (x86) \java\jdk1.8.0_101\bin\java.exe '


* Try:

Run with--STACKTRACE option to get the stack trace. Run with--info or--debug option to get more log output.

And also:

Total time:19.893 secs
CreateProcess error=206, the file name or extension is too long.
9:25:45:external task execution finished ' Bootrun '


After a few days of entanglement, the problem was found to be MAVEN's configuration problem.

1, first download maven,

2, and then configure the environment variable

3, in idea, follow the diagram below to configure:

(1) Maven home directory

(2) User settings file

(3) Local repository


After the configuration, the problem disappears.



Explain:

Here we use the Springboot 1.3.7., the MAVEN repository is used in Gradle. So Maven has to be configured, but actually idea already has maven plugin, and in most cases we don't need to download maven and configure it, but sometimes the Maven plugin is problematic, so it's best to download local maven and configure it yourself.

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.