Removing files from the JRE - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

PashaPal
Posts: 4
Joined: Fri Feb 13, 2009 12:08 pm

Removing files from the JRE

Hi,

I have the enterprise edition of Advanced Installer, and have a couple of questions regarding the bundling of JRE with pack 200.

1) With pack200 turned on does the target installed machine need a jvm already installed?

2) Sun allows us to remove certain files from private installations like charset.jar. However, if I remove the file and then try to bundle
the JRE, the build fails noting that "charset.jar" is missing. Installation size is critical, and I am trying to remove as much as legally
possible from the JRE (based on Sun's license).

Thanks, any help on this topic would be greatly appreciated.

Sincerely,
Pasha
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Removing files from the JRE

Hi Pasha,
With pack200 turned on does the target installed machine need a jvm already installed?
Please note that Pack200 is simply a compression algorithm for the JRE bundle. If the JRE bundle is included in your package, the Java Launcher will use it. Therefore, your Java Product won't need a JRE installed on the target machine.
Sun allows us to remove certain files from private installations like charset.jar. However, if I remove the file and then try to bundle
the JRE, the build fails noting that "charset.jar" is missing.
Please note that Advanced Installer can add a JRE installed on your machine as a bundle. However, the JRE in the project needs to be the same as the JRE on disk. Therefore, you can try removing the files on disk and only then add the JRE bundle to the project.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PashaPal
Posts: 4
Joined: Fri Feb 13, 2009 12:08 pm

Re: Removing files from the JRE

Hi for the first portion, this is what happens, I try to compress the JRE bundle using pack200 and it pop-ups with the message that JRE 1.5 or later must be available in the target machine and as a result it is setting the pre-requisites to JRE 1.5. I then go to pre-requisites and remove the JRE 1.5 prerequisite, save and then build the new installer.

However, once I install on a machine with no JRE or JDK, the installer fails with the error message "The Java Runtime Environment version 1.5 or later must be installed in the order to unpack JAR files". I have tried this on a few machines and the problem persists.

Thanks,

Pasha
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Removing files from the JRE

Hi Pasha,

After further investigations we found that the problem is caused by a bug in Advanced Installer. Thank you for bringing this to our attention. Until the bug is fixed you can disable Pack200 compression.

Under normal circumstances Pack200 should use the JRE bundle to extract the files.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PashaPal
Posts: 4
Joined: Fri Feb 13, 2009 12:08 pm

Re: Removing files from the JRE

Hi, thanks for the reply.

This is a critical issue for our company as with Pack Compression on the size of the installer is 1/3 rd smaller. Is there any solution that can get around this with Pack compression?
If not what if any is the ETA on this fix?

Thanks,

Pasha
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Removing files from the JRE

Hi Pasha,

Currently a JRE must be installed on the target machine for Pack200 to work correctly. However, a fix will be included in the next version of Advanced Installer which is scheduled for release in the near future.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”