当我使用Maven编译并尝试运行Tomcat服务器时,我将遇到有关此错误的问题。 我不明白我哪里错了!
我已设置:
JAVA_HOME = C:\Program Files (x86)\Java\jdk1.8.0_181
PATH = C:\Program Files (x86)\Java\jdk1.8.0_181\bin
从控制台的项目文件夹中:
mvn -am -pl dev/tomcat-server -P dev-tomcat-run compile
我随后收到此错误:
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (default) on project visallo-dev-tomcat-server:
Command execution failed.: Cannot run program "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe"
(in directory "C:\Program Files (x86)\visallo\dev\tomcat-server\target"): CreateProcess error=206
感谢任何建议!