Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

My application requires the 6 Update 30 JRE to be present on the client system,So i am trying to download and install JRE but i am not able to get a static or permanent link of the JRE,
following page has all the versions of JRE present, but the HTTP link will go through number of https redirection before the actual binary is provided for download

www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html[^]

So what is the best or preferred method to Automatically Download the Required JRE?
Posted
Updated 16-Apr-12 17:16pm
v4

best is to not automatically download and install things on other peoples computer.

But you can include the JRE in your application to make sure it is there.

Check this: Simple_installer_with_JRE_check[^]

for an example and use this: NSIS - Nullsoft Scriptable Install System[^] for Installer creation.

EDIT:

here is a pretty good example on how to integrate a JRE with the application:
http://www.dobysoft.com/products/nativej/help/html/advanced/bundling.html[^]
 
Share this answer
 
v2
Hi Torsten, thanks for the Replay i was aware of NSIS and infact below script downloads and installs the JRE
http://nsis.sourceforge.net/Java_Launcher_with_automatic_JRE_installation[^]

The url's seems to be static but i was not able to find the simillar URL's for other versions and for 64 bit OS.

And was interested in automatic JDK download also.
 
Share this answer
 
Comments
TorstenH. 17-Apr-12 7:57am    
I have added another link.
It is a good idea to deliver the JRE directly with the application.

You could also just check for the JRE and if not there prompt to dl that one. No need to have an automatic system behind that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900