Java packaging method