How to access property file after creating exe of java project? -
i have java file in access property file giving path as:
string path1 = test.class.getresource("config/field.properties").getpath();
when run project in eclipse ide works properly. created runnable jar of project , of launch4j app created exe file of project. when run through exe, gives me error as:
java.io.filenotfoundexception: file:\d:\test\convert.jar!\config\field.properties (the filename, directory name, or volume label syntax incorrect)
can give me suggestions accessing property files present inside jar? in advance
have properties file in project jar.
Comments
Post a Comment