Developing a application on Mac OS X 10.4 and using java 1.5 release 4.
I need to open the folder containing my application through my application.
The program works file if there are no "blank white" spaces in the path, but fails if there are some spaces in between the path. Below it the piece of code. Please suggest a way to resolve the issue.
For example, if the application is run from following path
Applications/RDH myproject/test program
the app fails to open the "test program" directory but if i run the application from
public class FileTest
public static void main(String[ ] args)
File obj = new File(".");
String test = obj.getCanonicalPath();
catch (IOException exc)
Please let me know incase my query is not clear.