• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in specifying file path

 
Gaurav Aggarwall
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
In my code, i am getting the error:
invalid directory,file or path name.
here is my code.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I doubt anybody is going to look at 700+ lines of code.
What is the exact error? Can you post the stack trace?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you must be joking

700+ lines, and a copy/paste/run triggers my firewall blocking whatever it's trying to do.

if you really have a problem, strip all the unrelated code and post a compilable demo program < 100 lines
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've got to be joking. 99.9% of the code posted has nothing to do with your stated problem. We are not going to read through all the code to find the problem.

If you don't know how to specify "file paths" then create a simple demo. Once you understand the basics, you then use the knowledge learned and apply it to your real program. This demo program is called a SSCCE . Check out the link for more info on create a SSCCE.

Wow, two people beat me to the punch. At least we are all consistent.
 
Gaurav Aggarwall
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for that..
i think the problem is in line 144
i get this error:
java.io.FileNotFoungException: d:emp.wav (The filename, directory name or volume label syntax is incorrect)

i dont know from where "emp.wav is coming when i have not at all mentioned it in my code."
here is the reduced code..
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Going from 737 to 615 lines does NOT mean you created a SSCCE. Read the link!

I think you will be waiting a long time for help.
 
Gaurav Aggarwall
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote:Going from 737 to 615 lines does NOT mean you created a SSCCE. Read the link!

I think you will be waiting a long time for help.


I understood what are you trying to say.
now i am working on SSCCE.
Anyways, Thanks for the help.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have edited out the code in your second post as it was
1) Making the page too long to scroll
2) You are posting the real SSCCE anyway

Hint to your problem. Are you aware of escape characters?
 
Rob Spoor
Sheriff
Posts: 20819
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gaurav Aggarwall wrote:java.io.FileNotFoungException: d:emp.wav (The filename, directory name or volume label syntax is incorrect)

What does character \t mean? It certainly isn't a \ followed by a t. Because don't forget, \ means something special in Java strings.
 
Gaurav Aggarwall
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:
Gaurav Aggarwall wrote:java.io.FileNotFoungException: d:emp.wav (The filename, directory name or volume label syntax is incorrect)

What does character \t mean? It certainly isn't a \ followed by a t. Because don't forget, \ means something special in Java strings.


Thanks buddy.
Problem solved.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!