How do you specify Java command line arguments for a Java Agent

Does anyone know how to specify a JAVA command line argument that is needed by a JAVA agent? I need to add the following line:“-Djava.security.properties=D:/Lotus/Domino/jvm/lib/ext/config/xl.policy”.

In the java.security file it explicity notes that you can append values to the propery file (listed below), but where? notes.ini, java.policy file?? This may be a simple question to some, but any help would be greatly appreciated.

Thanks a million in advance,

Niels

Section of the java.security file:

Determines whether this properties file can be appended to

or overridden by the system property -Djava.security.properties

The properties file is appended to using:

-Djava.security.properties=

and overridden using:

-Djava.security.properties==

Subject: How do you specify Java command line arguments for a Java Agent

Hi,

I’m not sure where you get the java.security.properties file from. But high chances are you just need to include the command line at the properties file itself.

So, your properties file should look like this:

Determines whether this properties file can be appended to

or overridden by the system property -Djava.security.properties

The properties file is appended to using:

-Djava.security.properties=

and overridden using:

-Djava.security.properties==

-Djava.security.properties=D:/Lotus/Domino/jvm/lib/ext/config/xl.policy

The ‘#’ sign comments out the command lines. So just make sure you insert your command line in a new line without the ‘#’ sign

Hope it works

Rgds

Rusyinni

Subject: RE: How do you specify Java command line arguments for a Java Agent

Rusyinni,

Thanks for you comments and sorry that it took so long to respond as I was trying several options.

I couldn’t get it to work that way, but was able to add the add the policy file as follows under the other policy settings:

policy.url.4=file:${java.home}/lib/security/xl.policy

policy.url.5=file:${java.home}/lib/security/xl.pol

However, when I print out the permissions from the agent I get the following “Unresolved” permissions:

05/02/2006 02:24:35 PM HTTP JVM: Permision = (unresolved javax.security.auth.AuthPermission createLoginContext null)

05/02/2006 02:24:35 PM HTTP JVM: Permision = (unresolved javax.security.auth.AuthPermission modifyPrincipals null)

05/02/2006 02:24:35 PM HTTP JVM: Permision = (unresolved javax.security.auth.AuthPermission doAs null)

05/02/2006 02:24:35 PM HTTP JVM: Permision = (unresolved javax.security.auth.PrivateCredentialPermission com.ibm.ISecur

ityLocalObjectBasicAuthImpl.CredentialsImpl com.ibm.ws.security.common.auth.WSPrincipalImpl “*” read)

Not sure how to resolve this problem, but please let me know if you or anyone else knows the fix.

Thanks,

Niels