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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -