Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 1914 invoked by uid 500); 16 Aug 2001 16:18:01 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 1905 invoked from network); 16 Aug 2001 16:18:01 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Ant Instantiation Exception running JDMK MIB Compiler Date: Thu, 16 Aug 2001 09:17:27 -0700 Message-ID: <1171E12B84A02B4584B3BD41F8D7E29E225506@NTEXCH.graviton.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Ant Instantiation Exception running JDMK MIB Compiler Thread-Index: AcEmFmaE/1sOX6JtTX2rXc/jja93VwAWGRXA From: "Steve Wells" To: X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I think Stefan is correct here - but then, for a Java based tool (that is non-ANT compliant, ala JDMK) what is the proper way to launch? "exec" to kick off another VM that way? -- Steve -----Original Message----- From: Stefan Bodewig [mailto:bodewig@apache.org] Sent: Wednesday, August 15, 2001 10:44 PM To: ant-user@jakarta.apache.org Subject: Re: Ant Instantiation Exception running JDMK MIB Compiler On Wed, 15 Aug 2001, Steve Wells wrote: > I am trying to run the MIB compiler provided with JDMK under Ant. Let me first say that I don't know anything about MIB. > name=3D"mib" > classname=3D"com.sun.jdmk.tools.MibGen" Are you sure the class MibGen follows the patterns of an Ant task? Judging from=20 > ${src}/com/graviton/dac/networkMonitor/mib-graviton.txt > ${lib}/java/jdmk/mib_core.txt" /> We'd have the following requirements: (1) public no-arg constructor (2) A method of the signature public void setLine(SomeType) where SomeType is String, a primitive type, wrapper class for a primitive type, Class, File or any Type with a public one-arg-String constructor. (3) A method of the signature public void execute() This here > java.lang.InstantiationException: com.sun.jdmk.tools.MibGen looks as if condition (1) wouldn't be true. Stefan