DEV Community

Harit Himanshu
Harit Himanshu

Posted on

3 1

[SOLVED] ScalaTest: QuickStart code fails with java.lang.NoClassDefFoundError: scala/xml/NamespaceBinding

I am just starting out with ScalaTest and following http://www.scalatest.org/quick_start page

I followed the steps as outlined (by downloading the jar file linked above the code) and the code fails

 unittest vi ExampleSpec.scala
➜  unittest scalac -cp scalatest-app_2.13-3.0.8.jar ExampleSpec.scala
➜  unittest scala -cp scalatest-app_2.13-3.0.8.jar org.scalatest.run ExampleSpec
An exception or error

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post