Hi folks,
I making some tests in my assignment and when I started the client in another computer and I found some problems in time to read my suncertify.properties and other files from runme.jar.
I'm doing so:
URL url = getClass().getClassLoader().getResource("suncertify.properties");
URI uri = new URI(url.toString());
Properties props = new Properties();
props.load(new FileInputStream(new File(uri)));
String className = (String)props.get("LOOK_AND_FEEL");
if(className != null){
UIManager.setLookAndFeel(className);
}
I think when I use "props.load(new FileInputStream(new File(uri)));" the system tries to find the file in the system files and not in the runme.jar.
What I have to do?
Thanks,
Wilder
SCEA Part I, SCAJ, SCPJ, SCDJ, SCWCD, SCBCD, SCMAD<br /> <br />"The significant problems we face can not be solved at the same level of thinking we were at when we created them." - Albert Einstein