X
_XaToA_
hello
i am trying for programing one java class and into one directory, one level
up directory, i have one properties file miprop.properties called.
i am trying to load this file but always my compiler says me
FileNotFoundError
i am trying with this:
try{
propFile = new FileInputStream("miprop.properties");
Properties p = new Properties(System.getProperties());
p.load(propFile);
System.setProperties(p);
System.getProperties().list(System.out);
}catch(Exception e){
e.printStackTrace();
}
can you helpo me?
thanks
i am trying for programing one java class and into one directory, one level
up directory, i have one properties file miprop.properties called.
i am trying to load this file but always my compiler says me
FileNotFoundError
i am trying with this:
try{
propFile = new FileInputStream("miprop.properties");
Properties p = new Properties(System.getProperties());
p.load(propFile);
System.setProperties(p);
System.getProperties().list(System.out);
}catch(Exception e){
e.printStackTrace();
}
can you helpo me?
thanks