New TestNG installation

Viewed 68

My Eclipse version is Version: 2022-09 (4.25.0). While I tried to install TestNG, it shows following error,

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.

1 Answers

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.

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).

Related