require proper java pkg