How do I get current directory in JAVA?
And how do I set Current Directory in JAVA?
When JVM runs a class file then what is it's current directory?
Is it the JVM running path???
Please help!
Debasis Jana.
I have little doubt about your question...
Would it mean that you like to know the current directory of your program/file?
If this is what you mean,
Just create a file(tempfile maybe) and get its AbsolutePath()....
Since the returned string represents the file you have created (with its dir.)...
Just remove that filename... ( the last )....
If this is not what you mean,
Update us...
Sukatoa