java.lang.NoClassDefFoundError: javax/json/Json
The classpath does not have the javax.json-api-1.0.jar. Run it like this:
java -cp target/classes:~/.m2/repository/javax/json/javax.json-api/1.0/javax.json-api-1.0.jar MyClass
The classpath does not have the javax.json-api-1.0.jar. Run it like this:
java -cp target/classes:~/.m2/repository/javax/json/javax.json-api/1.0/javax.json-api-1.0.jar MyClass