在TestNG中运行UT案例时出现以下错误:
FAILED: TC1
java.lang.Error: Can't find java.home ??
at java.util.logging.LogManager.readConfiguration(LogManager.java:1295)
at java.util.logging.LogManager$3.run(LogManager.java:399)
at java.util.logging.LogManager$3.run(LogManager.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:396)
at java.util.logging.LogManager.access$800(LogManager.java:145)
at java.util.logging.LogManager$2.run(LogManager.java:345)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:338)
at java.util.logging.LogManager.getLogManager(LogManager.java:378)
at java.util.logging.Logger.demandLogger(Logger.java:448)
at java.util.logging.Logger.getLogger(Logger.java:502)
JAVA_HOME已设置为“C:\ Program Files \ Java \ jdk1.8.0_45”
做了很多谷歌搜索但没有找到任何帮助