How to create a folder with spaces written in Java under Linux?

view story

http://stackoverflow.com – I have a serious problem I want to run a Linux command using a Java class with the runtime interface, there is a command to create a folder named eg "My Folder", with a space For create the Unix command is easy to do either: mkdir My\ Folder or mkdir "My Folder" But how to translate this in Java, I tried with two commands : Runtime.exec("mkdir My\ Folder") Runtime.exec("mkdir \"My Folder\"") Here is an example: import java.io.IOException; public class CreerDossier { public static void main(String[] args) throws IOException { Runtime runtime = Runtime.getRuntime(); runt (HowTos)