The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Maneesh Godbole wrote:Please copy paste the exception stack trace (inside code tags) instead of posting an image of it. Many people, including me, have images disabled.
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Maneesh Godbole wrote:
The error message is self explanatory.
Do you have the file at this location?
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
naved momin wrote:tell the stuff which i don't know,
i m not new to Java
i have tried specifying the absolute path
i have tried specifying the relative path
luck, db
There are no new questions, but there may be new answers.
Jeff Verdegan wrote:
naved momin wrote:tell the stuff which i don't know,
No need to be rude.
i m not new to Java
Yes, you are. Not that there's anything wrong with that.
i have tried specifying the absolute path
i have tried specifying the relative path
Have you tried reading the docs for that getResource() method that you're using? Have you tried looking at the URL that you're getting back? Have you tried looking at its getPath() method? Have you tried understanding that you can't represent a file inside a jar just using java.io.File?
Also, please UseRealWords.(⇐click)
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Jeff Verdegan wrote:
naved momin wrote:tell the stuff which i don't know,
No need to be rude.
i m not new to Java
Yes, you are. Not that there's anything wrong with that.
i have tried specifying the absolute path
i have tried specifying the relative path
Have you tried reading the docs for that getResource() method that you're using? Have you tried looking at the URL that you're getting back? Have you tried looking at its getPath() method? Have you tried understanding that you can't represent a file inside a jar just using java.io.File?
Also, please UseRealWords.(⇐click)
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
naved momin wrote:ok so what should i do so that i can read and write a file by taking it as a resource?
You can't write to a jar entry.
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/