java - Prevent background process from showing up on Dock -
i have java application. tasks, run jvm instance in parallel using processbuilder
. i.e. main application starts jvm instance using process
, both communicate using i/o.
but on dock
on mac, shows both process:
i not want that, other process back-end work , not required shown front. risk can manually force quit process easily.
what should done make sure runs on background , doesn't show on dock
if back-end processor not need screen resources simplest thing launch new jvm in headless mode:
java -djava.awt.headless=true com.bl.processmain
Comments
Post a Comment