user0000001
user0000001

Reputation: 2233

Install4j: installer:sys.installationDir inconsistent

The install4j variable sys.installationDir on MacOS (not the folder) returns just /Applications.

This makes sense since technically the directory the application was installed in was "/Applications" but I've used this variable inside my VM options to point to certain dependencies. This is causing me to have runtime errors. Is there another variable I should be using for this?

I've looked and I don't see any other options except to verify the platform and include the rest of the path.

Upvotes: 2

Views: 391

Answers (1)

Ingo Kegel
Ingo Kegel

Reputation: 48015

You should use the installer variable ${installer:sys.contentDir} for that purpose, it always points at the directory where the distribution tree is installed.

Upvotes: 1

Related Questions