Ich habe eine Java-Code-Subnet Utils kann nicht auf eine Art gelöst werden
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();
}
}
Der Apache Commons net jar zu dem Classpath hinzugefügt wird.
Immer noch bekomme ich einen Fehler für SubnetUtils, da es nicht zu einem Typ aufgelöst werden kann.
Irgendwelche Ideen?