ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Ant Instantiation Exception running JDMK MIB Compiler
Date Thu, 16 Aug 2001 05:43:30 GMT
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.

>     <taskdef
>       name="mib"
>       classname=""

Are you sure the class MibGen follows the patterns of an Ant task?
Judging from 

>       <mib line="-mc -d mib -tp com.graviton.dac.networkMonitor.mib
> ${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

(3) A method of the signature public void execute()

This here

> java.lang.InstantiationException:

looks as if condition (1) wouldn't be true.


View raw message