use java7 to run secor processes by default

@pgarbacki 
To avoid duplication, could we move it to a separate file and import it?