>From the command line, type "java -version".  To find out which java you would run, 
>I've included a ".bat" file for NT that will
tell you.  Have "which.bat" on your path and type "which java.exe".


Here is the batch file inline.  Just cut and paste it and save it to a file called 
which.bat.

---------- CUT HERE ---------------
@echo off
:: Parameter error checking:
if "%1"=="" goto Syntax
echo %1 | find /v ":" | find /v "\" | find /v "*" | find /v "?" | find /v "," | find 
/v ";" | find /v "/"  | find "%1" > nul
if errorlevel 1 goto Syntax

:: Actual program is only one line:
for %%a in (.;%pathext%) do for %%b in (%1%%a) do ( echo %%~f$PATH:b | find /i "%1" )
goto End

:Syntax
:: Help screen:

echo WHICH, Version 1.20
echo UNIX-like WHICH utility for NT
echo Written by Rob van der Woude
echo.
echo Usage:  WHICH  program_name
echo.
echo You may specify program_name with or without
echo extension, but without a drive or path.
echo Spaces or wildcards aren't allowed either.

:End

---------- CUT HERE --------------

----- Original Message -----
From: Steve Bearss <[EMAIL PROTECTED]>
To: Tomcat <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 11:28 AM
Subject: IE 6 upgrade and java plug-in causing problems


> Hello All,
>
> I recently upgraded to IE 6 and I was prompted to install the latest java plug-in as 
>well.  Now my Tomcat is not running.  All my
java development is on a separate partition, which includes the jdk and tomcat.  I'm 
not sure what IE did (it is on another
partition) to this setup and I tried to update my JAVA_HOME variable, still no luck.  
Is there any way to determine which version of
java is currently running (I seem to have a few copies now) and where it is located?  
After that I should be able to re-configure
JAVA_HOME and all is good?
>
> Thanks,
> s
>

---
Brett Bergquist
email: [EMAIL PROTECTED]


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to