Specify -javaagent Option in Manifest
<p>To tell the JVM to invoke a Java Instrumentation agent before the main class of a Jar file, you usually have to invoke it with a command option:</p>

<pre><code>java -javaagent:agent.jar program.jar
</code></pre>

<p>Having to type this out every time is pretty inconvenient, so is there a way to specify the agent in the <code>program.jar</code> manifest?</p>

<pre><code># program.jar/META-INF/MANIFEST.MF
...
Java-Agent: agent.jar
</code></pre>