Building jar targeting multiple Java versions, including 9

Alan Bateman Alan.Bateman at oracle.com
Fri Aug 26 12:30:32 UTC 2016


On 26/08/2016 13:21, Oliver Gondža wrote:

>
> I have implemented my own JMX connector[1], that do need to cast to 
> HotSpotVirtualMachine in order to load the agent into target process 
> using jcmd. If there ware a portable way to initiate JXM connection 
> using socket or pid that would work across different java vendors and 
> versions I would love to throw that all away but I have not found any. 
> I intend to elaborate further and report back if this use-case can be 
> covered by exposed modules or not.
startLocalManagementAgent and startManagementAgent are the 
supported/documented methods for doing this.

-Alan


More information about the jigsaw-dev mailing list