tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Tomcat and JRE redistribution
Date Thu, 19 Jul 2007 19:29:56 GMT
Hash: SHA1


broken connection wrote:
> As I told before,its a simple web app for the BA's just for some proof of
> concept and if I try to get too techie.

If this is a POC, why not just walk over to their computers and install
the JRE and Tomcat manually, then deploy the WAR right there. A POC
should be relatively no-frills, so ... why worry about the frills?!

> Anyways, so [right] now i am trying to check if the user machine has JAVA
> installed or not using this batch script:
> @echo off
> ::Find the current (most recent) Java version
> start /w regedit /e reg1.txt "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
> Runtime Environment"
> type reg1.txt | find "CurrentVersion" > reg2.txt
> if errorlevel 1 goto nojava
> for /f "tokens=2 delims==" %%x in (reg2.txt) do set JavaTemp=%%~x
> if errorlevel 1 goto nojava
> echo Java Version = %JavaTemp%
> del reg1.txt
> del reg2.txt
> But its not running ... so the [fight] is still on....

Well... if you want help with this, then you should tell us what it's
doing (or not doing). I might just have run "java.exe -version" and seen
if you got output. If you do, and you don't care about the version
number, then you're done: no searching necessary. Just blindly run
"java.exe" when you need the runtime ;)

- -chris

Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message