【Spark错误】Exception in thread “main“ java.lang.NoClassDefFoundError: org/json4s/Formats
作者:互联网
Exception in thread “main” java.lang.NoClassDefFoundError: org/json4s/Formats
遇见这种异常,可以通过导入依赖的方式解决
比如在pom文件中导入如下maven依赖:
<dependencies>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20160810</version>
</dependency>
<!--加入对commons-io的依赖-->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
</dependencies>
问题解决
参考:https://blog.csdn.net/liurui50/article/details/100560430
标签:lang,Exception,java,NoClassDefFoundError,json,io,json4s,org 来源: https://blog.csdn.net/qq_44141629/article/details/122756307