Using JavaImpl of File