Embedded JAR contents visible - 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!

pokemoen
Posts: 2
Joined: Wed Dec 22, 2010 2:30 pm

Embedded JAR contents visible

The feature page boasts "Protect your application code ..." as one of the advantages of the embedded jar feature in the Java version of AI.
However, after packing my entire application into one jar and then embedding that jar in the exe I tried simply opening the .exe file with 7zip and, presto, the entire jar contents was simply visible... It is therefore not more secure than having all the jar files in the install dir. (unless you count obscurity)
Is there any way to encrypt, encode or obfuscate all the class and package information that sits in the .exe? (using an obfuscator before embedding is not a viable option for us, since we use reflection here and there, which breaks after obfuscation)

Thanks in advance,

Alex
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Embedded JAR contents visible

Hi Alex,

Another option that you can try is to activate "Hide settings" from "Settings" tab and then define a system property in the "Virtual Machines" tab.
Then, from your application code you can verify the existence of this system property.

Other encryption/encoding options I'm afraid are not available in the current version of Advanced Installer

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pokemoen
Posts: 2
Joined: Wed Dec 22, 2010 2:30 pm

Re: Embedded JAR contents visible

Thanks Bogdan. These options however do not accomplish the task of hiding the tell-tale class information that's in the .exe.
Does anyone know of any third-party tool that do this? (perhaps wrap the exe in a bootstrapper that decodes it on the fly?)

Cheers,
Alex

Return to “Common Problems”