"ERROR: no magic number" what auto download and installation of jre

Hi all:

I used install4j to create the installer of my stand of java along the app. In order to accommodate those who do not have jre installed on their machine, I chose to include a jre boudled in my Installer, which is supposed to download the jre to a specific url when no local run is detected.

Install4j allows me to specify a download url, in fact, I tried two ways: 1. I downloaded the jre, jdk-6u24-windows - i586.exe and put it on my own server, and the url is from my server; 2. I used the official "http://javadl.sun.com/webapps/download/AutoDL?BundleId=33787". In both cases the jre has been correctly downloaded but cannot install, shows the error in the log:

JRE download
file size: 714528, manage 00CC000C
Successful upload
Fact
Self-extracting JRE
ERROR: no magic number
ERROR: Failed JRE untaring
ERROR: Can not "détarer" JRE

-Does anyone know what could be the problem?

Thank you!
John

Johnny_hunter wrote:
ERROR: Failed JRE untaring

-Does anyone know what could be the problem?

Is it not obvious? The Setup program tries to decompress a file which is not tarred in the first place. Of course, which will fail. I'm guessing that the installer wants the JRE to be paved and probably also gzipped (so it gets a. tar.gz extension).

Tags: Java

Similar Questions

Maybe you are looking for