user1091978
user1091978

Reputation: 145

How to modify the classpath of an install4j launcher

My main installer (using InstallAnywhere ) is installing another installer (using install4j) in unattended mode. After the install4j installer is installed, the class path of the launcher has to be updated with the entries of some external jars installed as a part of the main installer (InstallAnywhere) outside the installation directory of the install4j installer.

How can I modify the class path of the launcher?

Upvotes: 1

Views: 925

Answers (1)

Ingo Kegel
Ingo Kegel

Reputation: 48025

Launchers in install4j read a text file with a ".vmoptions" extension that contain VM parameters and optionally some special directives. For example, if the launcher is named "hello.exe", create a text file named "hello.vmoptions" next to it.

in the text file, add a line

-classpath/a [classpath]

where [classpath] is replaced with the additional class path for the launcher.

Upvotes: 1

Related Questions