My Oracle Support Banner

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

Last updated on OCTOBER 25, 2021

Applies to:

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

Goal

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 xxxxTest.java 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?

Solution

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
Goal
Solution
References


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