I'm trying to read a properties file using BufferedInputSt ream and getResourceAsSt ream(),but getting "java.io.IOExce ption: Stream closed' exception.
My properties file is not set in the classpath, I even tried by incuding the file as a jar in the classpath but invain.
My code snippet is:
BufferedInputSt ream bufferedinputst ream =new BufferedInputSt ream(getClass() .getClassLoader ().getResourceA sStream(s));
where 's' is the name of the properties file.
I'm running as a standalone program.
Can anyone help me out in resolving the issue.
My properties file is not set in the classpath, I even tried by incuding the file as a jar in the classpath but invain.
My code snippet is:
BufferedInputSt ream bufferedinputst ream =new BufferedInputSt ream(getClass() .getClassLoader ().getResourceA sStream(s));
where 's' is the name of the properties file.
I'm running as a standalone program.
Can anyone help me out in resolving the issue.
Comment