Passing VM arguments from within a JAR

Hello,

I have a small app contained within a JAR which runs when invoked.

However some features of the program require communication with a JVMTI agent. The agent library information must be passed to the VM on startup in the form:

-agentlib:AGENT_LIBRARY_NAME

I know very little about JAR files and was wondering how I can pass this VM argument at startup.

Cheers

[402 byte] By [jmw2a] at [2007-11-27 11:08:41]
# 1

Can't be done. The VM is already started by the time the jar is loaded. Write a script to launch it

georgemca at 2007-7-29 13:30:30 > top of Java-index,Desktop,Deploying...