From: Muhammad Aamir [mailto:[EMAIL PROTECTED] 
 
> Problem only occurs when I changed the execution type to 
> Internal execution. And as far as I understood so far, 
> NetBeans have custom class
> loader(s) and that might be the reason. But I am not sure.

Excuse my ignorance if you already know this info.

Yeah, it's all about the classloader.
Here's the line that loads properties in rc4:

        URL url =
Thread.currentThread().getContextClassLoader().getResource(getFilename()
);

where getFilename() pulls in the system property or defaults to
"OJB.properties".


Did you try this?

        System.setProperty("OJB.properties", "/OJB.properties");

It's been awhile since I've used Netbeans and I don't know much about
it's classloading. It seems to me that if it can find your main(), then
it should be able to find the properties file.

Hope this helps,


Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to