A
ArunDhaJ
Hi Friends,
Is there any API to get the apache tomcat installed folder. for eg:
I've to get as "D:\apache-tomcat-6.0.14\bin"....
Actually during development I ran tomcat using "startup.bat"..... and
was using System.getProperty("user.dir"); API to get the path....
But now I want the Tomcat to run as service so using "service.bat" to
intall tomcat as service... but the above API gives me "C:\Windows
\system32\"... which causes me problem...
please help me in either of the solution:
1. Is there any command to set the path in "service.bat" as the tomcat
directory so that the I can overcome the problem without any code
change.
2. Is there any other property like "user.dir" to fetch the tomcat
installed directory..
Regards,
ArunDhaJ
Is there any API to get the apache tomcat installed folder. for eg:
I've to get as "D:\apache-tomcat-6.0.14\bin"....
Actually during development I ran tomcat using "startup.bat"..... and
was using System.getProperty("user.dir"); API to get the path....
But now I want the Tomcat to run as service so using "service.bat" to
intall tomcat as service... but the above API gives me "C:\Windows
\system32\"... which causes me problem...
please help me in either of the solution:
1. Is there any command to set the path in "service.bat" as the tomcat
directory so that the I can overcome the problem without any code
change.
2. Is there any other property like "user.dir" to fetch the tomcat
installed directory..
Regards,
ArunDhaJ