title: Java JDB: ERROR: transport error 202: gethostbyname: unknown host
body: <p>I have a very similar error message to this <a href="https://stackoverflow.com/questions/33721486/jdb-does-not-work-on-os-x-10-11">post</a>; however, the solution on that same post did not work for me. Editing the host file my adding in <code>127.0.0.1 my-host-name</code> to my hosts file (per solution in linked thread) did nothing for me unfortunately.</p>
  
  <p>After "run" in JDB, I get the following error message:</p>
  
  <blockquote>
    <p>Initializing jdb ...</p>
    
    <blockquote>
      <p>run run QuadtreeBitmap VM start exception: VM initialization failed for:
      /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/bin/java
      -Xdebug -Xrunjdwp:transport=dt_socket,address=Patricks-iMac.local:50547,suspend=y
      QuadtreeBitmap</p>
    </blockquote>
    
    <p>ERROR: transport error 202: gethostbyname: unknown host ERROR: JDWP
    Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP
    exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
    [debugInit.c:730]</p>
    
    <p>Fatal error: Target VM failed to initialize.</p>
  </blockquote>
  
  <p>I am using MacOS and trying to launch JDB directly through the terminal (and not through Eclipse or any other IDE).</p>