Submitted On 22-MAY-2003
alfredojahn
Looks 1.4.2 fixes 2 of the 3... The create new folder icon
is still disabled when you navigate to "My Documents"
folder. Is this going to be fixed in the final release?
Submitted On 28-FEB-2004
Hitoshi@Tanabe
'New Folder' cannot create to 'My Music' and 'My Picture'
and other Folder on WindowsXP(Japanese OS)
Submitted On 18-OCT-2004
robinr
This bug is really annoying.
I can work around it since I'm writing new code that needs the create directory function. Using WXP SP2 swedish, JRE1.4.2_06
Submitted On 03-NOV-2004
Plasticbiker
My Documents part of this bug STILL exists in jdk1.5
Submitted On 22-SEP-2006
Here is my workaround:
public static void main(String args[]) {
....
// A litte fix for WinXP
if (System.getProperty("os.name").equals("Windows XP"))
fixMyDocumentsRights();
....
}
/**
* Fixes the fact that you can't create a folder in My Documents with
* JFileChooser unless a bit has been unset. This bit doesn't seem to affect
* Windows applications.
*/
public static void fixMyDocumentsRights() {
try {
Runtime.getRuntime().exec("attrib -r \"%USERPROFILE%/My Documents\"");
} catch (IOException e) {
log.warn(e.getMessage());
}
}
Submitted On 30-JAN-2007
Dr_Hok
This bug persists in JDK1.6.0 (with My Documents, My Music, My Pictures and Desktop; drive roots are not affected).
The workaround ("attrib -r ...") doesn't work if My Documents is redirected to a network share.
Submitted On 14-JAN-2008
And 1 year later, with the release of JDK1.6.0_04 is still there :(
Submitted On 05-AUG-2008
carcour
Can the fix be backported to Java 6 as it's an important bug.
Thanks,
Carl Antaki
Submitted On 15-DEC-2008
There is a similar fix suggested in this thread, but it has a minor flaw.
Try the below one instead, it works, (i have tested this)
try {
Runtime.getRuntime().exec("attrib -r "%USERPROFILE%\My Documents"");
} catch (IOException e) {
log.warn(e.getMessage());
}
Or if you want to suggest a workaround for the customers who already have this bug. Ask them to run the below command in a command prompt window
attrib -r "%USERPROFILE%\My Documents"
This is a one time requirement, it is sufficient if they run this once on the machine that faces this bug.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|