So I m trying to use the canonical path to access a sound file, but it does not seem to work. Here is my code:
// load wave data from buffer
WaveData wavefile = WaveData.create("/Users/spex/NetBeansProjects/spaceinvaders/src/spaceinvaders/spaceinvaders/" + path);
看来,它正试图从班级道路的地点走路。 难道有办法让它知道,我想要投入一条通俗的道路,而不是一个当地的道路?