JAVA .properties file

后端 未结 3 2092
日久生厌
日久生厌 2021-01-25 14:27

having a lil issue, i have create a properties file :

config.properties located in ../resource/config.properties

this is the file currently :

des         


        
3条回答
  •  有刺的猬
    2021-01-25 14:45

    Problem is here:

            // destination = "D:/Documents/NetBeansProjects/printing~subversion/fileupload/Uploaded/";  // main location for uploads (CHANGE THIS WHEN USING PREDATOR)
            File theFile = new File(destination + "/" + username);
            theFile.mkdirs();// will create a sub folder for each user (currently does not work, below hopefully is a solution) (DOES NOW WORK)
            System.out.println("Completed Creation of folder");
            NewDestination = destination + username + "/";
    

    You have commented the destination variable and you are using here:

    NewDestination = destination + username + "/";
    

提交回复
热议问题