How to get the Desktop path in java

jumar picture jumar · Jul 3, 2009 · Viewed 92.4k times · Source

I think this will work only on an English language Windows installation:

System.getProperty("user.home") + "/Desktop";

How can I make this work for non English Windows?

Answer

Amlaa picture Amlaa · Apr 19, 2012

I use a french version of Windows and with it the instruction:

System.getProperty("user.home") + "/Desktop";

works fine for me.