[platform] ensure java package installed before platform service start