| Author |
How to check if JRE is installed
|
Sandeep Ghosh
Ranch Hand
Joined: Jan 23, 2002
Posts: 145
|
|
Hi Friends, Is it possible to write a batch file which will check whether JRE 1.2 is installed.If not then install the JRE else run my JAR file.My target users are windows users and I am distributing app in CD which will have JRE files. Thanks in adv Sonu
|
 |
James Swan
Ranch Hand
Joined: Jun 26, 2001
Posts: 403
|
|
Consider checking out InstallAnywhere (there's a free version available) http://www.zerog.com/ This will create an installer for your app, and you can bundle other resources with it: ie. - JRE (you can choose pretty much any version of JRE from 1.1x - 1.4x) and from different vendors also (Sun, IBM etc)
|
 |
Sandeep Ghosh
Ranch Hand
Joined: Jan 23, 2002
Posts: 145
|
|
|
Thanks James ,but I don't want to go any vendor's product.Is there any way using VB script or anything which will check the registry whether JRE1.2 is installed .
|
 |
James Swan
Ranch Hand
Joined: Jun 26, 2001
Posts: 403
|
|
Well you could try something like this (very rudimentary, but it's a start): This of course assumes someone has setup JAVA_HOME environment variable etc.
|
 |
 |
|
|
subject: How to check if JRE is installed
|
|
|