title: IOException: Bad file descriptor in Linux
body: <p>Getting <code>Bad file descriptor</code> exception while running Java application in Linux environment which can run fine in windows. below is the code:</p>
  
  <pre><code>Properties ProgramConfig = new Properties();
          try
          {
              InputStream in = new FileInputStream("application.properties");
  
              //loading properties file now
              ProgramConfig.load(in);
  
              IpAddressPort = ProgramConfig.getProperty("ip");
              System.out.println("Ip address "+IpAddressPort);
  
  
          } 
  </code></pre>