--- Michael Kastner <[EMAIL PROTECTED]> wrote:
> Siram,
>
> thank you very much for your reply. I think I wasn't specific enough. To put
> my critique in a nutshell: if I set JAVA_HOME in the environment, there
> oughtn't be a need to copy tools.jar in a /lib directory of tomcat.
>
Of course. The tomcat startup scripts have been written to help us achieve this
:-)
> There should neither be a classpath (which you explained are ignored by
> tomcat) nor should there be any script settings necessary. The setting in
> JAVA_HOME should simply be sufficient to make the jdk's jars available to
> tomcat.
>
Umm.. there is indeed no need to worry about the CLASSPATH, actually..The
JAVA_HOME setting is indeed sufficient.
> But that is not the case. Without copying tools.jar to
> {tomcat_root}/common/lib and/or {tomcat_root}/server/lib it's not recognized
> by tomcat and an exception is thrown. Was I clear?
>
You really need to check that your JAVA_HOME environment variable is pointing
to the correct folder.
Try this on a command prompt (these work on Windows, you could try Unix
equivalents)
if exist %JAVA_HOME%\lib\tools.jar echo found tools.jar
This will display the string "found tools.jar" in on the screen, if your
environment variable is indeed set correctly.
On my NT 4 system, this works right regardless of whether the JAVA_HOME env
variable points to a directory with spaces in it or not. So, even if the JDK is
installed at, say "e:\program files\Javasoft\jdk", the command and the
catalina.bat scripts will work OK.
if not exist %JAVA_HOME%\lib\tools.jar echo could not locate tools.jar
If you see the string "could not locate tools.jar" sicplayed on screen after
running this command, then your JAV_HOME env. var. is not set correctly.
Also, do mention the Tomcat release that you're testing with.
I have Tomcat 4.0.1 running on Sun's JDK 1.3.1 and my OS is WinNT 4.0 with
Service Pack 6, and once I set JAVA_HOME, tomcat works out of the box for me.
Which JDK release are you using ? Does it ship tools.jar in JAVA_HOME\lib ?
Because that's where the tomcat startup scripts look for this file.
> Sincerely
>
> Michael Kastner
>
Sriram
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>