Eclipse maven Packaging and Tomcat service startup problem handling __java after JDK from 1.7.x to 1.8.x

Source: Internet
Author: User


1 Eclipse JDK upgrades from 1.7.x to 1.8.xMaven packaging problem solving

[INFO] 1 Error

[INFO]-------------------------------------------------------------

[INFO]------------------------------------------------------------------------

[INFO] Build failure

[INFO]------------------------------------------------------------------------

[INFO] Total time:1.552s

[INFO] Finished at:wed Apr 2610:17:28 CST 2017

[INFO] Final memory:10m/112m

[INFO]------------------------------------------------------------------------

[ERROR] Failed to execute Goalorg.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project Fmcgwms:compilation failure

[ERROR] Unable to locate the Javaccompiler in:

[ERROR] C:\ProgramFiles\Java\jre1.8.0_92\.. \lib\tools.jar

[ERROR] Please ensure your are USINGJDK 1.4 or above and

[ERROR] Not a JRE (Thecom.sun.tools.javac.Main class is required).

[ERROR] In most cases can changethe location of your Java

[ERROR] Installation by setting thejava_home environment variable.

[ERROR]-> [Help 1]

[ERROR]

[ERROR] To the "Full stack traceof" errors, re-run Maven with THE-E switch.

[ERROR] Re-run Maven using The-xswitch to enable the full debug logging.

[ERROR]

[ERROR] For more information aboutthe errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

1.1 Modifying the eclipse JRE


1.2 Add Java_home\lib\tools.jar

Select the 1.8 version of the JRE:


Select row for Edit add:

1.3 Eclipse Maven Packaging Settings

Select Package Items:

Set JRE:

1.4 Migrate to production and test environment must be reset Java_home

Upgrade the JDK version of the deployment environment to 1.8.x and set the appropriate Java_home environment variables. 2 Windows JDK upgrade Tomcat service problem handling

The jdk1.7.x installed service defaults to the previous JDK version and needs to be uninstalled and reinstalled. 2.1 Uninstall Tomcat service

CD enters Tomcat_home\bin directory input:

Tomcat_home\bin\service Unstall tomcat-server-name 2.2 Install TOMCAT service

CD enters Tomcat_home\bin directory input:

Tomcat_home\bin\service Install Tomcat-server-name

This shows that the Tomcat service installation found the JAVA_HOME environment variable to configure, so after the JDK upgrade the application must reinstall the service if it relies on JDK8.

Related Article

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.