posted 14 years ago
Hi All,
I am trying to execute a jar file from command prompt.
It is a swing application that i created through Netbeans.
In my application I have a location "src/com/java/db/properties" which contains my properties file.
Now, my code snippet for loiading the properties file goes here below...
When I run my app through the netbeans, this works fine.
But when I execute it using my jar through command prompt, I get an error saying
Now, when I changed my code snippet to the following...
And by doing this I get null pointer exception at props.load(in).
This is because "in" is "null" and I dont know the reason for it to be null.
Can any of you help me on this???