• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to transform Java Command to ant task

 
Manuel Jordan
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Members

I have this Main class



Therefore, the follow java command

Is to "feed" the line in the main method System.in.read();
java comand (related with JMX)

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



The code work, but I can never get a connection from jconsole because never appear any PID

What is misssing in my ant configuration?

Thanks in advanced
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't set -Dcom.sun.management.jmxremote. Try this:

 
Manuel Jordan
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Peter

Peter Johnson wrote:You didn't set -Dcom.sun.management.jmxremote. Try this:



Thanks a lot , it work!!!

btw is "jvmargs="-Dco...." and since is deprecated, this "<jvmarg>" must be used according to ant documentation



Thanks a lot again!

-Manuel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic