Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to check if JRE is installed

 
Sandeep Ghosh
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic