5 Replies Latest reply: Apr 22, 2011 5:18 PM by Johnny_hunter RSS

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

      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
      extracting JRE
      ERROR: no magic number
      ERROR: untaring JRE was unsuccessful
      ERROR: Could not untar JRE

      Do anyone know what could be the problem?