Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get default windows folders in Java

843810Dec 12 2009 — edited Dec 19 2009
I have been trying to get the My Music folder in Windows and could not find an easy way with Java. The path changes between XP and Vista and Windows 7. Is there a standard registry value I can query? It also changes with languages. I ended up developing a Native Interface and Java Library JAR. I did put it on the web for anyone to use. It is at [http://code.google.com/p/winfolderpath/] Note: this works for both 32 bit and 64 bit JVM's and has access to all CSIDL identifiers.

The question is, Is there a way to do this without using dll's?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2010
Added on Dec 12 2009
2 comments
476 views