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