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.