Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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.
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic