Exceptionin thread "main" java.lang.NoClassDefFoundError: storm/trident/spout/ITridentSpout
添加以下依赖即可
Exception HelperAre you having an exception like the following?
Exception in thread "main" java.lang.NoClassDefFoundError: storm/trident/spout/ITridentSpout
.
.
.
Caused by: java.lang.ClassNotFoundException: storm.trident.spout.ITridentSpout
.
.
.
To resolve the exception:
- Download this package from Maven Central
Or
If you're using a dependency manager (Maven, SBT, Ivy, Gradle, etc.) copy and paste the respective snippet above into your project file. If you're using a dependency manager, that's all there is to resolving this exception. - Include the downloaded package in your classpath when running Java. For example, if you're starting your program on the command line like so:
, you would add this package to the classpath like so:java -jar my-jar.jar foo.bar.MainClass
java -cp /path/to/downloaded/file/storm-core-0.9.3.jar -jar my-jar.jar foo.bar.MainClass