grazie mille, se scrivo
String path=System.getProperty("user.home")
String myApp=
path+File.separator +"myApp";
boolean success=(new File (myApp)).mkdirs();
if (success)
System.out.println("ho creato la cartella"+myApp);
else
System.out.println("impossibile creare"+myApp);

va bene?