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."
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.
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.
posted 8 years ago
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: