Subnet Utils cannot be resolved to a type
<p>I have a java code-</p>

<pre><code>import org.apache.commons.net.util.*;

public class test {
    public static void main (String args[]) {
        SubnetUtils utils = new SubnetUtils("192.168.1.0/24");
        String[] allIps = utils.getInfo().getAllAddresses();
    }
}
</code></pre>

<p>The apache commons net jar is added to the classpath.</p>

<p>Still I am getting an error for SubnetUtils as it cannot be resolved to a type. </p>

<p>Any ideas ?</p>