IOException: Bad file descriptor in Linux

1.2k views Asked by At

Getting Bad file descriptor exception while running Java application in Linux environment which can run fine in windows. below is the 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);


        } 
0

There are 0 answers