-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Broken,

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGn7uz9CaO5/Lv0PARAr//AKCLb3/JgUSbw+gzMpvy6xRqNGyGrQCgpXio
F8jkNUxGrtOLyTywhccKZ5Y=
=U4tc
-----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]

Reply via email to