Using FileUtils in eclipse

后端 未结 6 1679
既然无缘
既然无缘 2020-12-09 08:45

When trying to use FileUtils I get \"cannot be resolved\" error.

\"enter<

相关标签:
6条回答
  • 2020-12-09 09:32

    Now selenium supports following code:

    FileHandler.copy(src, dest);
    
    0 讨论(0)
  • 2020-12-09 09:40

    For selenium automation users

    1. Download Library file from http://www.java2s.com/Code/Jar/o/Downloadorgapachecommonsiojar.htm
    2. Extract
    3. Right click on the proj name from the explorer >> Build path >>Config Build Path
    0 讨论(0)
  • 2020-12-09 09:43
    <!-- https://mvnrepository.com/artifact/org.apache.directory.studio/org.apache.commons.io -->
    <dependency>
        <groupId>org.apache.directory.studio</groupId>
        <artifactId>org.apache.commons.io</artifactId>
        <version>2.4</version>
    </dependency>
    

    Add above dependency in pom.xml file

    0 讨论(0)
  • 2020-12-09 09:46

    I have come accross the above issue. I have solved it as below. Its working fine for me.

    1. Download the 'org.apache.commons.io.jar' file on navigating to [org.apache.commons.io.FileUtils] [ http://www.java2s.com/Code/Jar/o/Downloadorgapachecommonsiojar.htm ]

    2. Extract the downloaded zip file to a specified folder.

    3. Update the project properties by using below navigation Right click on project>Select Properties>Select Java Build Path> Click Libraries tab>Click Add External Class Folder button>Select the folder where zip file is extracted for org.apache.commons.io.FileUtils.zip file.

    4. Now access the File Utils.

    0 讨论(0)
  • 2020-12-09 09:50

    Open the project's properties---> Java Build Path ---> Libraries tab ---> Add External Jars

    will allow you to add jars.

    You need to download commonsIO from here.

    0 讨论(0)
  • 2020-12-09 09:51

    FileUtils is class from apache org.apache.commons.io package, you need to download org.apache.commons.io.jar and then configure that jar file in your class path.

    0 讨论(0)
提交回复
热议问题