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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -