Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
iam trying to compile the following example under java142 but iam getting errors because i dont think this package is part of java142, where can i download this package?
thanks
package com.sun.content.server.foundation.snmp;
public class SnmpTrapTest {
/**
* For unit testing.
*
* @param args an array of command-line arguments
*/
public static void main(String[] args) {
try {
System.out.println("Starting...");
SnmpTrapSender sa = SnmpTrapSender.getInstance();
// new SnmpTrapSender("172.16.1.38", 162);
sa.sendTrap(SnmpConstants.SNMP_TRAP_DBCONNECTION_DOWN, "DB Down Test");
sa.close();
System.out.println("Done...");
} catch (Exception e) {
e.printStackTrace();
System.exit(0);
}
}
$javac "SnmpTrapTest.java"
SnmpTrapTest.java:39: cannot resolve symbol
symbol : class SnmpTrapSender
location: class com.sun.content.server.foundation.snmp.SnmpTrapTest
^
SnmpTrapTest.java:39: cannot resolve symbol
symbol : variable SnmpTrapSender
location: class com.sun.content.server.foundation.snmp.SnmpTrapTest