So far, “str” does not allow the user to pass Java options.
This could be done by adding an environment variable
$STRJFLAGS that the user could optionally set before
invoking str.

To do so: replace
java -cp “$CLASSDIR:$STRJAR” “$JAVANAME”
with
java $STRJFLAGS -cp “$CLASSDIR:$STRJAR” “$JAVANAME”

Submitted by hubert on 3 April 2017 at 15:16

On 28 April 2017 at 18:38 Hendrik van Antwerpen commented:

You could probably use the JAVA_TOOL_OPTIONS to achieve this. See https://docs.oracle.com/javase/8/docs/platform/jvmti/jvmti.html#tooloptions. Is that enough for your use case?

Log in to post comments