Java – eclipse – TestNG refers to the nonexistent project XXX and starts the configuration

When I try to run a test as a TestNG suite, I get a very cryptic error message indicating that TestNG cannot start because it references a non-existent project I think my project does exist and I see it in package Explorer!

Solution

It turns out that you just need to make sure your project is a java project, not a simple project Check that the navigator displays a little blue "J" associated with the folder If not, you create a simple project

"It seems that the project you created is not a java project

Eclipse will Java files are automatically built as The class file is included in the Java project

Create a java project file > New > Project > java project give the project a name Click finish“

Find this answer hidden in this source for years

In eclipse, you should use the navigator instead of the package explorer, because the navigator is browsing the actual file system, where the package Explorer loads only some content In the future, I hope people can find solutions more easily

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>