wrote Share in Java + Oprop