use readMessage i got nothing.
check args i got --parent-widnow=xxxx,chrome-extentions://xxxxx
start.cmd like this
java -Xdebug -Xrunjdwp:transport=dt_socket,address=9998,server=y,suspend=n -jar "%~dp0/extentions-0.0.1-SNAPSHOT-jar-with-dependencies.jar" %*
the message send from page is "{"AuthKey":"niuniu","Pensize":2,"DrawType":0,"TrackColor":255,"EditBorderColor":16711680,"Transparent":240,"SetSaveName":"aaaa","SetMagnifierLogoText":"bbbb","SetWatermarkPictureType":3,"SetWatermarkPicturePath":"","SetWatermarkTextType":1,"MosaicType":1,"DefaultPath":"1.jpg","HideCurrentWindow":0,"AutoCaptureFlag":0,"x":0,"y":0,"Width":0,"Height":0}"
do you know what's the problem ?
in chrome_debug.log i found
[2132:2840:0518/105851:ERROR:native_message_process_host.cc(292)] Native Messaging host tried sending a message that is 1953720652 bytes long.
it's seem like chrome problem ? but i search from stackoverflow,there say it's java problem. sadness.