fix formatting and reverse jre dependency order