aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes snmp in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "snmp in java" Watch "snmp in java" New topic
Author

snmp in java

anne annette
Greenhorn

Joined: Apr 22, 2012
Posts: 8
hi i am very new in java and i am doing my final year project to develope snmp using java....i have taken this jar from a website (http://hosteddocs.ittoolbox.com/KA110807.pdf) (example 1) and i have put it in netbean but i m getting this error so much..

error: incompatible types
throws IOException, SNMPBadValueException, SNMPGetException {
required: Throwable
found: SNMPGetException

error: incompatible types
throw new SNMPGetException("Incomplete row of table received", 0, SNMPRequestException.FAILED);
required: Throwable
found: SNMPGetException



CAN SOMEONE PLEASE HELP ME...REALLY APPRICIATE IT...
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18669
    
    8

So the SMTPGetException class is contained in that JAR which you downloaded? Or did you write it yourself? At any rate, the compiler is saying that it isn't a proper exception class, and therefore it can't be used as an exception in your code.
anne annette
Greenhorn

Joined: Apr 22, 2012
Posts: 8
thank you for replying
ya it is contained in the jar which i took.the classes from the jar i did not download it and load it in the netbean...i copied one by one and put it in netbean but i copied exactly the same code i didnt change anything .and then to build the .jar i just click the properties of the program name and create it there.do you think that is to do something with the error i am getting.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: snmp in java