Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

problem in specifying file path

 
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.
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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?
 
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
 
Rancher
Posts: 3191
29
  • 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
Rancher
Posts: 3191
29
  • 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
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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?
 
Sheriff
Posts: 21974
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu 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.
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic