Java applet - 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!

mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Java applet

Hi,

I want to distribute a Java Applet with my Windows product. This is a JAR file and it requires the CLASSPATH to be updated.

How do I do that?

When I use a regular merge module or setup project, I can not find any place to set the classpath. So then I figured I would create a separate Java setup project, and run this MSI from my main setup. This is not ideal, I would prefer to simply set the classpath from a regular setup.

But when I add a Java Product to this project, it creates some STUB files: "Your Product.ini" and "Your Product.exe". These files get installed along with the product, but I don't want them because the applet is a non-visual component and can not be run.

Any ideas?

Thanks

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

Re: Java applet

Hi,

This can be done by following these steps:
- go to the "Files and Folders" page and add the JAR file
- go to the Environment page and create the CLASSPATH environment variable
- in the New Environment variable dialog set the behavior to "Append"
- uncheck the "Remove on Uninstall" checkbox

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Re: Java applet

Thanks Cosmin.

Why should the "Remove on Uninstall" be UNchecked?

Would it not make sense to remove this from the classpath when the JAR is uninstalled?

Thanks

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

Re: Java applet

Hi,

If the environment variable is per-user then it will be removed completely when this checkbox is unchecked. However, if you modify the system variable (the "Windows NT/2000 system variable" option is checked) then you can leave the option checked.

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

Return to “Common Problems”