Maven:CompilerException: tools.jar not found: jre7\.\lib\tools.jar

Exception:CompilerException: tools.jar not found: jre7\..\lib\tools.jar

    Condition: This exception occurs when using Maven to package the project, indicating that tools are not found.

    Solution: Make sure that the jre in your eclipse in Preferences--"java--"installed JREs points to JDK instead of JRE, tools.jar is only available in JDK. Of course, you can also add the lib directory of jdk to the environment variable classpath.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326558031&siteId=291194637