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!

abdeljalil13
Posts: 1
Joined: Tue Jul 05, 2016 7:12 pm

build java installer from jar

hi, in the command ligne tool i read my .jar like this
java -Dfile.encoding="UTF-8" -jar /Users/Desktop/app/test.jar
how can i add this ligne in adveced installer to get an installer from my jar, and thks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: build java installer from jar

Hello and welcome to our forums,

We apologize for our delayed reply. To achieve what you want you can install your java application using our Java Product feature. Just add your java application files in "Files and Folders" page and then define a java product in "Java Products" page for your java app.

To set the "file.encoding" system property when launching your java app you can proceed like this:
1. go to "Java Products" page and select your java product
2. in the right pane select the "Virtual Machine" tab
3. click on the [...] picker button from the right side of the "JVM parameters" field
4. in the "JVM Parameters" dialog add a new system property like this:
  • Name: file.encoding
    Value: UTF-8
5. save and rebuild your project

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”