Change director structure for java