Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using FileUtils in eclipse

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

enter image description here

Then, how do I install FileUtils library to be able to use it in Eclipse? I see it is an Ant utility, but I am not sure how many jars I need to install.

enter image description here

like image 579
prosseek Avatar asked Oct 31 '12 19:10

prosseek


People also ask

How do I download Apache Commons jar?

Download the latest version of Apache Common IO jar file from commons-io-2.11. 0-bin. zip. At the time of writing this tutorial, we have downloaded commons-io-2.11.


2 Answers

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.

like image 71
kosa Avatar answered Sep 20 '22 20:09

kosa


Now selenium supports following code:

FileHandler.copy(src, dest); 
like image 21
dom thomas Avatar answered Sep 21 '22 20:09

dom thomas