自动下载并安装JRE [英] Automatically Download and Install JRE

查看:210
本文介绍了自动下载并安装JRE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的应用程序要求客户端系统上存在6 Update 30 JRE,所以我尝试下载并安装JRE,但无法获得JRE的静态或永久链接,
下一页具有所有JRE版本,但是HTTP链接将经过https重定向的次数,然后才提供实际的二进制文件供下载

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

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?

推荐答案

最佳方法是不自动在其他人的计算机上下载并安装内容.

但是您可以将JRE包含在您的应用程序中以确保它在那里.

检查以下内容:
Simple_installer_with_JRE_check [ ^ ]

例如,并使用它: NSIS-Nullsoft可编写脚本的安装系统 [ http://www.dobysoft.com/products/nativej/help/html/advanced/bundling.html [ ^ ]
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.



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[^]


Torsten,感谢我对NSIS的了解,并了解以下脚本下载并安装了JRE的事实
http://nsis.sourceforge.net/Java_Launcher_with_automatic_JRE_installation [
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.


这篇关于自动下载并安装JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆