fix detect java package