I need to find my documents path using Java. The following code doesn\'t give me \"accurate\" loation
System.getProperty(\"user.home\");
What sh
That's easy, JFileChooser finds it for you
JFileChooser
new JFileChooser().getFileSystemView().getDefaultDirectory().toString();
I hope this helps someone