Hi,
The best approach would be to define a java system property to hold the persistent attribute of your application. You can do that from the "Edit JVM Parameters" dialog.
So an example of command line will be:
javaw -JAR YourFile.jar -Dconfig="argument here"
From your application you can access that system property using:
System.getProperty("config")
You can find more about setting the attributes of a java program from:
http://java.sun.com/docs/books/tutorial ... index.html
However, if you can't(or don't want to) use the system properties method, the work around will be to create a shortcut for your application that will call your application with the respective command line. You can create a shortcut using the "New Shortcut Wizard".
Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
FOLLOW US
Get the latest news in Application Packaging