Processing to eclipse or Netbeans

In processing I wrote a code when I click image sounds play and it’s working fine in processing however, when I import it Netbeans and eclipse the image file file displayed but sounds not working? Can you help?