Syncing Java Directory