Use the code from Mies for Java installation