My Oracle Support Banner

Cannot Re-run JUnits In JDeveloper (Doc ID 1996251.1)

Last updated on OCTOBER 25, 2021

Applies to:

Oracle JDeveloper - Version and later
Information in this document applies to any platform.


On JDeveloper 12.1.2 When trying to re-run a JUnit, the following error is received:

Cannot start class (xxxx) in the JUnit Runner because a test is already running.
The target cannot be started as an application, because the class xxxxTest does not have a main method.

In order to re-run the test, there is the need to shut down JDeveloper and restart. Is there an option to avoid having to perform the restart to re-run the test?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.