When I compile, it just keep saying "the file path is undefined" (or something similar to this meaning). I've tested it with prepending "./" + filename but still cannot.
Can someone help me, please ?
thanks in advance
Abhijit Rai wrote:Hi could you provide some additional info :
1.Whether the project is a web application deployed on the server or a standalone java apllication
2.In case of it being a web application ,the directory structure of the application , present in the server where it is deployed.
Sorry for being delayed.
1. It's stand alone Java application. Hence, the file structure is simple and as usual of a NetBeans Project.
I put all MXX.wav files under "measures" folder and put that folder under "src" folder. When I compile, got this error message (compilation is successful but cannot run)
"java.io.FileNotFoundException: ..\measures\M96.wav (The system cannot find the path specified)"
This is my method adding the file names into an arraylist.
I've tried without ".." (current directory), but still cannot.
To be able to play, I'm provided a file called StdAudio.class which will read and play the files from the arraylist. I don't have to do anything except building the filenames and calling them properly.
Can someone enlighten me how-to ? If you wish to try and help my case, feel free to ask for the whole files(source codes).
please, appreciate your help !!!