Forums Register Login

How to check if JRE is installed

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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)
+Pie Number of slices to send: Send
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 .
+Pie Number of slices to send: Send
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.
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3880 times.
Similar Threads
Code to get JRE version
Problem deploying war file on WinXP
Parameter setting in JDK configuration
Localhost leads to nowhere
UnsupportedClassVersionError
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:05:53.