• Post Reply Bookmark Topic Watch Topic
  • New Topic

SEVERE: Class [ org/snmp4j/smi/Address ] not found. ARGH  RSS feed

 
phillip nash
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all.

I'm working on developing a web service and I need to use SNMP4J to do what I need to do. When I run the application as an application it works fine, but when I create a servlet
project, add SNMP4J to my library folder, and finally compile my application I get this error

"SEVERE: Class [ org/snmp4j/smi/Address ] not found."

Is there something I'm missing here?

Thanks.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16059
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this is a web application (deployed in a WAR file), then make sure that the library (JAR file) that contains the class org.snmp4j.smi.Address is included in the WEB-INF/lib directory of your WAR file.

If it's not a web application, then make sure that the library is on the classpath when running your application.
 
phillip nash
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. Am I correct in that when I right click on WEB-INF folder > Import > Archive File = SNMP4J this should import this into the project? I've just done this and I'm still getting
the same error. I'm really a beginner when messing around with the build paths etc.

Thanks for your time and help.
 
phillip nash
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorted it. Instead of importing the .jar as an archive, I went an actually imported it as a file.

I hope this'll help others.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!