B
Bruno
Hello all,
Well, I'm using tomcat to run my web application, which loads
dinamically many jars and execute them. My problem is that these jars
sometimes have a method that uses relative paths to do something (read
files, create files, etc). Currently, the current base dir is given
wrong for these loaded applications! Instead of the right path, it's
given "C:\tomcat" or something.
If it were with my Web Application itself, it would be easy to get over
this problem by using the getRealPath("") method provided by api. But
since I can't modify the jar code I will load, what can I do? Some
ideas?
Thanks you!
Bruno
Well, I'm using tomcat to run my web application, which loads
dinamically many jars and execute them. My problem is that these jars
sometimes have a method that uses relative paths to do something (read
files, create files, etc). Currently, the current base dir is given
wrong for these loaded applications! Instead of the right path, it's
given "C:\tomcat" or something.
If it were with my Web Application itself, it would be easy to get over
this problem by using the getRealPath("") method provided by api. But
since I can't modify the jar code I will load, what can I do? Some
ideas?
Thanks you!
Bruno