Class representing an option that will be passed to the JVM at startup.
The class can optionally be named, which allows the bundled Java program
itself to override the option. Changes will take effect upon restart of the
application.
Assuming your CFBundleIdentifier (settable via AppBundlerTask.setIdentifier(String))
is com.oracle.appbundler. Then you can override a named option by calling
import java.util.prefs.Preferences;
[...]
Preferences jvmOptions = Preferences.userRoot().node("/com/oracle/appbundler/JVMOptions");
jvmOptions.put("name", "value");
jvmOptions.flush();
The corresponding entries will be stored in a file called
~/Library/Preferences/com.oracle.appbundler.plist.
To manipulate the file without Java's Preferences from the command line,
you should use the tool
defaults.
For example, to add an entry via the command line, use:
defaults write com.oracle.appbundler /com/oracle/appbundler/ -dict-add JVMOptions/ '{"name"="value";}'