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.