Hello,
when i try to compile from source i am getting error. Does any had similar problems ?
Building SimpleSnmp ... (cd SimpleSnmp && /usr/bin/ant ) && touch SimpleSnmp Buildfile: /usr/local/src/nav-3.9.1/java/SimpleSnmp/build.xml
init:
compile: [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/build.xml:30: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 2 source files to /usr/local/src/nav-3.9.1/java/SimpleSnmp/build [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:33: package snmp does not exist [javac] import snmp.*; [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:68: cannot find symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] private SNMPv1CommunicationInterface comInterface = null; [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:668: cannot find symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList var = null; [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:674: cannot find symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] var = new SNMPVarBindList(); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:677: cannot find symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList nextpair = comInterface.getNextMIBEntry(nextoid); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:678: cannot find symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpobj = nextpair.getSNMPObjectAt(0); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:679: cannot find symbol [javac] symbol : class SNMPNull [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (snmpobj instanceof SNMPNull) break; [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:680: cannot find symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:680: cannot find symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:681: cannot find symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:681: cannot find symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:688: cannot find symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] var = new SNMPVarBindList(); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:691: cannot find symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList nextpair = comInterface.getNextMIBEntry(nextoid); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:692: cannot find symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpobj = nextpair.getSNMPObjectAt(0); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:693: cannot find symbol [javac] symbol : class SNMPNull [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (snmpobj instanceof SNMPNull) break; [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:694: cannot find symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:694: cannot find symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:695: cannot find symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:695: cannot find symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:706: cannot find symbol [javac] symbol : class SNMPBadValueException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPBadValueException exp) { [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:709: cannot find symbol [javac] symbol : class SNMPException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPException exp) { [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:710: cannot find symbol [javac] symbol : class SNMPGetException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!(exp instanceof SNMPGetException && exp.getMessage() != null && exp.getMessage().indexOf("not available for retrieval") >= 0)) { [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:728: cannot find symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:728: cannot find symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:729: cannot find symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:729: cannot find symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:730: cannot find symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpValue = pair.getSNMPObjectAt(1); [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:734: cannot find symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!decodeHex && snmpValue instanceof SNMPOctetString) { [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:740: cannot find symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (data.length() == 0 && !(snmpValue instanceof SNMPOctetString)) { [javac] ^ [javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:883: cannot find symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] comInterface = new SNMPv1CommunicationInterface(snmpVersion, hostAddress, cs_ro); [javac] ^ [javac] 30 errors
BUILD FAILED /usr/local/src/nav-3.9.1/java/SimpleSnmp/build.xml:30: Compile failed; see the compiler error output for details.
Total time: 2 seconds make[1]: *** [SimpleSnmp] Error 1 make[1]: Leaving directory `/usr/local/src/nav-3.9.1/java' make: *** [all-recursive] Error 1
On Sun, 25 Sep 2011 13:54:45 +0200 Dragoljub Spasojević ds@sbb.rs wrote:
Hello,
when i try to compile from source i am getting error. Does any had similar problems ?
Building SimpleSnmp ... (cd SimpleSnmp && /usr/bin/ant ) && touch SimpleSnmp Buildfile: /usr/local/src/nav-3.9.1/java/SimpleSnmp/build.xml
[snip]
[javac] /usr/local/src/nav-3.9.1/java/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:33: package snmp does not exist [javac] import snmp.*; [javac] ^
Is the JavaSNMP library available on the system CLASSPATH, as described in NAV's INSTALL file [1]?
[1] http://metanav.uninett.no/hg/default/file/e79c02c590db/INSTALL.rst#l81