change the common HW flags from capri to java