Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"ERROR: no magic number" when auto download & installation jre

Johnny_hunterApr 22 2011 — edited Apr 22 2011
Dear all:

I use install4j to create installer for my java stand along app. In order to accommodate those who don't have jre installed on their machine, I chose to include a boudled jre in my installer, which is supposed to download the jre at a specific url when no local runtime is detected.

Install4j allows me to specify a url for the downloading, actually 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 that of my server; 2. I used the offical "http://javadl.sun.com/webapps/download/AutoDL?BundleId=33787". In both cases the jre was successfully downloaded but failed to install, the error in the log shows:

Downloading JRE
file size: 714528, handle 00CC000C
download successful
Done
extracting JRE
ERROR: no magic number
ERROR: untaring JRE was unsuccessful
ERROR: Could not untar JRE

Do anyone know what could be the problem?

Thanks!
John
This post has been answered by gimbal2 on Apr 22 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2011
Added on Apr 22 2011
5 comments
907 views