JNLP / Webstart - setting environment variables

Is there a way through the jnlp file to set up an environment variable? I want to set JAVA_TOOL_OPTIONS to do some LTW with aspectj.

thanks

+3
source share
4 answers

In the JNLP resources section, you can add any number of nodes propertyafter your cans. They then become equivalent to the -D option on the command line.

<resources>
    <j2se...
    <jar href="...

    <property name="env0" value="value0"/>
    <property name="env1" value="value1"/>
    <property name="env2" value="value2"/>
</resources>
+2
source

I think your best bet is to set the client-side variable before running the java web start.

There are ways to pass JVM parameters, if there is a JVM parameter that will do what you want - I'm not sure what JAVA_TOOL_OPTIONS does.

+1

Java, Java "". Runtime Parameters JRE :

-javaagent=c:\MyAgent.jar

MyAgent.jar.

Java.

+1
source

It is currently not possible to install javaagent via webstart. This does not allow us to use load time in time using the webstart application. We will return to compilation of time again.

0
source

Source: https://habr.com/ru/post/1711219/


All Articles