Vote count: 0 I am facing some issue while ruing a maven project job on Jenkins. According to code, it should create a new File on the location passed. Using below code for the same. String fileName = "C://DevTools/abc.txt" File file = new File(fileName); file.createNewFile(); //retuing false When I surrounded the above code in try-catch block, it threw Exception 'Caot find the file path on system'. I checked the path in System manually, it was correct.But when I tried creating a new file using FileUtils (Apache common IO), it created the file successfully. Is there any reason behind this? asked 16 secs agoSharath N Let's block ads!...
ادامه مطلب