Possible Duplicate:
Load properties file in Servlet/JSP
I was wondering how to access a property file from a Java class,where this project is done using Java EE,because the stacktrace keeps giving me this message(is it because that folder is inaccessible?).The question is: How to access a property file from a Java class in Java EE?
Here is the code:
In UserClient.java:
Properties config = new Properties();
config.load(new FileInputStream("C:/Users/L31207/Desktop/FYPJ/OpenCalais/MarcusFYPJ"));
String[][] categories = fetchArrayFromPropFile("content", config);
Here is the stacktrace:
java.io.FileNotFoundException: C:\Users\L31207\Desktop\FYPJ\OpenCalais\MarcusFYPJ (Access is denied)