Hi,
I have an executable jar file which uses the SingleFrameApplication class. I am using netbeans 6.1 as my
IDE.
In my code I have a reference to a properties file which is located in the src folder inside some package. When I run the application from netbeans, it runs fine but when i double click on the jar file though the application runs fine but when i try to access the properties file an exception is thrown..
The jar file is in the following path C:\Documents and Settings\15760\My Documents\NetBeansProjects\UTS\dist
Since user.dir is a system property which gives the current system directory i m in the above directory and there is no path saying src\\uts\\config\\envConfig.properties so i m unable to reach the file.
How do i fix this problem? My basic intention is to run the project with the help of jar file in some other machine which does not have an IDE or anything..
Following are the lines of code which i m using to access the properties file..
Regards,
Suhas