title: Error in module (cModule) Test (id=1) during network setup: Class "FlatNetworkConfigurator" not found
body: <p>I want to run a simulation in omnet++ 4.6 and inet 4.
  I made a network with a .ned file (see below) and a .ini but I get a confusing error which I can not unterstand.</p>
  <p>test.ned</p>
  <pre><code>package test1;
  import inet.networklayer.autorouting.ipv4.FlatNetworkConfigurator;
  import inet.nodes.inet.StandardHost;
  import inet.nodes.ethernet.EtherSwitch;
  import inet.nodes.inet.Router;
  import ned.DatarateChannel;
  import inet.networklayer.autorouting.ipv4.IPv4NetworkConfigurator;
  
  //
  // TODO auto-generated type
  //
  network Test
  {
      @display(&quot;bgb=961,379&quot;);
      types:
      submodules:
          etherHost2: StandardHost {
              @display(&quot;p=89,249&quot;);
          }
          etherHost1: StandardHost {
              @display(&quot;p=746,179&quot;);
          }
          etherSwitch2: EtherSwitch {
              @display(&quot;p=341,233&quot;);
              gates:
                  ethg[3];
          }
          etherHost3: StandardHost {
              @display(&quot;p=227,333&quot;);
          }
          etherHost4: StandardHost {
              @display(&quot;p=398,333&quot;);
          }
          etherSwitch3: EtherSwitch {
              @display(&quot;p=528,38&quot;);
              gates:
                  ethg[2];
          }
          router: Router {
              @display(&quot;p=447,157&quot;);
          }
          router1: Router {
              @display(&quot;p=206,153&quot;);
          }
          configurator: FlatNetworkConfigurator {
              @display(&quot;p=73,87&quot;);
          }
      connections:
          router.ethg++ &lt;--&gt; DatarateChannel {  datarate = default(1000Mbps); } &lt;--&gt; etherSwitch3.ethg++;
          router1.ethg++ &lt;--&gt; DatarateChannel {  datarate = default(100Mbps); } &lt;--&gt; router.ethg++;
          etherSwitch2.ethg[0] &lt;--&gt; DatarateChannel {  datarate = default(100Mbps); } &lt;--&gt; router1.ethg++;
          etherSwitch2.ethg[0] &lt;--&gt; DatarateChannel {  datarate = default(100Mbps); } &lt;--&gt; etherHost2.ethg++;
          etherSwitch3.ethg[0] &lt;--&gt; DatarateChannel {  datarate = default(100Mbps); } &lt;--&gt; etherHost1.ethg++;
          etherSwitch2.ethg[0] &lt;--&gt; DatarateChannel {  datarate = default(100Mbps); } &lt;--&gt; etherHost3.ethg++;
          etherSwitch2.ethg[0] &lt;--&gt; DatarateChannel {  datarate = default(100Mbps); } &lt;--&gt; etherHost4.ethg++;
  }
  </code></pre>
  <p>test.ini</p>
  <pre><code>[General]
  network = Test
  
  #configurator 
  *.configurator.dumpAddresses = true
  *.configurator.dumpTopology = true
  *.configurator.dumpLinks = true
  *.configurator.dumpRoutes = true
  
  # Routing settings
  *.*.ipv4.arp.typename = &quot;GlobalArp&quot;
  *.*.ipv4.routingTable.netmaskRoutes = &quot;&quot;
  *.router*.tcpType=&quot;TCP&quot;
  **.etherSwitch*.relayUnitType = &quot;MACRelayUnit&quot; #config für Switch
  
  **.eth[*].mac.duplexMode = true
  **.eth.typename=&quot;EthernetInterface&quot;
  *.etherHost*.tcpType = &quot;TCP_none&quot;
  *.etherHost*.udpType =&quot;UDP&quot;
  *.etherHost*.sctpType =&quot;SCTP&quot;
  
  **.eth[*].queueType = &quot;DropTailQueue&quot; # in routers
  **.eth[*].queue.dataQueue.frameCapacity = 10  # in routers
  </code></pre>
  <p>It would be nice if someone could help me, I already tried to use the IPv4NetworkConfigurator instead of the FlatNetworkconfigurator but that did not work.
  I also set inet in the settings of the project as reference.</p>
  <p><a href="https://i.stack.imgur.com/nWdtD.png" rel="nofollow noreferrer">Here is the error message</a></p>