dr_pompeii,
you should try this:
<target ...>
<java ... >
[...]
<arg value="-Dcom.sun.management.jmxremote" />
[...]
</java>
</target>
(see http://ant.apache.org/manual/CoreTasks/java.html and
http://ant.apache.org/manual/using.html#arg)
i did it tonight on my linux box with a jdk6 and it works well :-)
hope this help
supareno
Dear Members
I have this java comand (related with JMX)
java -classpath D:\TR\...a.jar;D:\TR\b.jar; -Dcom.sun.management.jmxremote
com.jordan.Main
This work, then I can get a connection from jconsole (PID from Local Tab
Pane)
The point is that is a long classpath and work for windows, therefore this
in Linux is heavy to be changed,
I used to work with ant (I am not an expert), usually with this is enough
<target name="run">
<java fork="true" classname="com.jordan.Main"
classpathref="libraries">
<classpath path="${bindir}"/>
</java>
</target>
The code work, but I can never get a connection from jconsole because never
appear any PID
Therefore I need your knowledge, what is misssing in my ant configuration
Thanks in advanced
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org