reading a prop file in jar from outside of jar
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, May 6, 2011 04:23 AM

I have a jar file with some necessary property files embedded in it. This jar exists some where in the system known path. And I have a Tomcat Web project from where I need to read one of the property file in the jar file. Path of the jar file is set under env-entry tag in tomcat project's web.xml file. I used JNI to read the path and load the resources. So long as the path was system folder path to the property or other resource files code was working correct and results were correct. When I bundled the resources into a jar, code is failing to find and read resource file from this jar. Can some one give me a code snippet to resolve this issue!? Thanks in advance. Ravi    More>>
			
I have a jar file with some necessary property files embedded in it. This jar exists some where in the system known path.
And I have a Tomcat Web project from where I need to read one of the property file in the jar file. Path of the jar file is set under env-entry tag in tomcat project's web.xml file. I used JNI to read the path and load the resources.
So long as the path was system folder path to the property or other resource files code was working correct and results were correct.
When I bundled the resources into a jar, code is failing to find and read resource file from this jar.

Can some one give me a code snippet to resolve this issue!?

Thanks in advance.
Ravi
   <<Less
About | Sitemap | Contact