简体   繁体   English

全新 TestNG 安装

[英]New TestNG installation

My Eclipse version is Version: 2022-09 (4.25.0).我的 Eclipse 版本是版本:2022-09 (4.25.0)。 While I tried to install TestNG, it shows following error,当我尝试安装 TestNG 时,它显示以下错误,

Cannot complete the install because some dependencies are not satisfiable
  Software being installed: a.jre.javase 14.0.0
  Software currently installed: M2E - POM Editor using LemMinX language server (includes Incubating components) 2.0.0.20220729-1256 (org.eclipse.m2e.lemminx.feature.feature.group 2.0.0.20220729-1256)
  Cannot satisfy dependency:
    From: M2E Maven POM File Editor using Wild Web Developer, Lemminx and Maven LS extension (requires Incubating components) 2.0.0.20220729-1256 (org.eclipse.m2e.editor.lemminx 2.0.0.20220729-1256)
    To: osgi.ee; (&(osgi.ee=JavaSE)(version=17))
  Cannot satisfy dependency:
    From: M2E - POM Editor using LemMinX language server (includes Incubating components) 2.0.0.20220729-1256 (org.eclipse.m2e.lemminx.feature.feature.group 2.0.0.20220729-1256)
    To: org.eclipse.equinox.p2.iu; org.eclipse.m2e.editor.lemminx [2.0.0.20220729-1256,2.0.0.20220729-1256]. 

How to solve this one.这个怎么解决。

According to the message, running Eclipse with Java 14 installed on your system (so it cannot be upgraded by Eclipse) prevents a complete upgrade to Eclipse 2022-09 because parts of Eclipse 2022-09 (or to be more specific, the Maven support ) require Java 17 or higher . According to the message, running Eclipse with Java 14 installed on your system (so it cannot be upgraded by Eclipse) prevents a complete upgrade to Eclipse 2022-09 because parts of Eclipse 2022-09 (or to be more specific, the Maven support )要求 Java 17 或更高

As solution, run Eclipse with Java 17 or higher or even better, install Java 17 as part of Eclipse (so it will also be upgraded by Eclipse in the future): As solution, run Eclipse with Java 17 or higher or even better, install Java 17 as part of Eclipse (so it will also be upgraded by Eclipse in the future):

Note: The Java version with which Eclipse is run is independent of the Java versions you use in your projects (configure the JDKs you want to use in your projects in the preferences Java > Installed JREs ). Note: The Java version with which Eclipse is run is independent of the Java versions you use in your projects (configure the JDKs you want to use in your projects in the preferences Java > Installed JREs ).

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM