0

How Can I create directory in an specified path on SUSE (Linux)? I have done it in Ubuntu by giving location like this:

String filelocation="/home/"+System.getProperty("user.name")+"/IE_Service/FormsSetting/";
Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
Mohammad Rashid
  • 138
  • 3
  • 16
  • 2
    What's wrong with that on SUSE? – SubOptimal Dec 16 '16 at 06:21
  • You do this the same way as you create a directory in Java on any other version of Linux, or MacOS, or Windows. (But not Android, 'cos Android isn't real Java.) – Stephen C Dec 16 '16 at 06:38
  • this is what i am doing.. works on UBUNTU.. File fil= new File("/home/"+System.getProperty("user.name"+"/IE_Service")); fil.mkdirs(); apparently when i debug i found " fil.mkdirs(); " terminates the program in SUSE – Mohammad Rashid Dec 21 '16 at 06:48

0 Answers0