This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Patrick,
You can pass in arguments to the JVM in the command line by entering "-vmargs -DmyVar=doIt" after the launcher executable.
In the appInitScript.js you will need to import the java.lang package.
ie. "importPackage(Packages.java.lang)"
Than in the initTarget function body, you can get the argument with this snippet of code:
var myVar = System.getProperty("myVar");
if (myVar == "doIt") {
// load program
}
Regards,
Patrick
I think there is a a bug in the launcher.exe, it doesn't accept additional vmargs from the command line. I'll file an enhancement for this feature.
Regards,
Patrick