Thanks a lot Chris, Steve and Charles, I really appreciate your help....
Heh. How are you running ant if you don't know where the JRE is located? I'm guessing that the JRE is already on the PATH so you might be good-to-go already.
Thats the point .. see actually this is where it started... i have a ANT based installer and it needed ANT in the path or ANT_HOME to be set....so to remove those dependencies, i copied the ant.jar directly under the "lib" folder of the installer and during startup point the classpath to it...so all dependencies to ANT got resolved... Now ANT's dependentant on JAVA_HOME or the path and even TOMCAT is dependent on it.....so that's why I started this thread and asked can I put the "JRE" jar file under the "lib" folder of my installer or Tomcat/lib etc ... so that I can make the paths relative to my base directory... At the end, the only thing that should matter to TOMCAT or ANT is that they should be able to find the classes in the JRE....so I don't understand, why you guys don't recommend this???? Thanks On 7/18/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Broken, broken connection wrote: > My installer is totally ant-based Heh. How are you running ant if you don't know where the JRE is located? I'm guessing that the JRE is already on the PATH so you might be good-to-go already. > and it does not have the capability to > search the registry and locate the entries... If you are desperate, you could write a plug-in for ant and then use it to obtain registry values. There's nothing stopping you from reading registry values from Java. > instead if you could tell me > which location in the Tomcat points to this JRE, I could over-write that > value instead...i think that would be much easier. startup.bat and friends will use the PATH environment variable to locate java.exe (or javaw.exe) if necessary. You can also set JAVA_HOME if you want. JAVA_HOME should point to the directory containing the "bin" directory which contains java.exe and javaw.exe. Check out CATALINA.BAT in the "bin" directory of your Tomcat installation. It contains comments at the top which explain all the different environment variables that you can use to affect Tomcat. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGnkKX9CaO5/Lv0PARAnEaAKCoqJHBYFVBn9ekFoecNIkIyXXM8QCgmrPR nbpHw3BUhWtOL6ga2pvX0LU= =pTP5 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]