Eclipse — Testng references non-existing project XXX, launch configuration

前端 未结 11 1085
陌清茗
陌清茗 2020-12-09 17:22

When trying to run a test as a TestNG suite, I would get a very cryptic error message saying that TestNG can\'t launch because it references a non-existant project. I think

相关标签:
11条回答
  • 2020-12-09 18:00

    In my case, the error occurred in a Scala project. It had installed the eclipse plugin, but it had not been used yet.

    Diagnostics: If all goes well, the project has a blue S for scala project. If not, it has a yellow PC mouse (for whatever that means).

    To fix, you need to

    sbt eclipse
    

    on the command-line. Eclipse recognizes it as Scala project at the latest on restart.

    0 讨论(0)
  • 2020-12-09 18:01

    In my case the run shortcut was referencing an old project.

    Simply right clicking on the folder of the project I was trying to run and selecting my java class fixed the problem.

    After that pressing the run button started working again.

    0 讨论(0)
  • 2020-12-09 18:01

    It doesn't have to be a Java Project, it could be a Maven one as well. There could be a reference problem with the oldest version of the project. Please try deleting the oldest version from your Eclipse workspace, and then change your reference point.

    0 讨论(0)
  • 2020-12-09 18:04

    Solved in a different way for the same issue.

    1) Go to Project->properties.

    2) In properties window's left pane select "Project Facets".

    3) Then click on "Convert to faceted form"

    4) Then choose your server and JDK version.

    Apply and Close.

    Note: Verify the project and the default IDE JRE is same version.

    0 讨论(0)
  • 2020-12-09 18:04

    I resolved the issue, follow the below steps:

    Right Click on Feature file> Run configurations>check for the feature path and classpath .. It was taking path of previous project. Resolved the issue after selecting current project

    0 讨论(0)
提交回复
热议问题