Skip to content

Avoid NoClassDefFoundError on JUnit Runner class #176

@rliesenfeld

Description

@rliesenfeld

When the JRE lacks the native "attach" library and "-javaagent" is not used, JMockit initialization fails with the proper exception, but it also causes a NoClassDefFoundError for the org.junit.runner.Runner class (since it triggers initialization through the Attach API in the first place).

This secondary failure needs to be avoided, to avoid confusing the user.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions