简体   繁体   中英

package org.apache.commons.io does not exist

I extracted our previously built jar file and try to compile Java code again using JDeveloper . It gave multiple error due to missing jars then I imported jars to my project then all error disappear except one

package org.apache.commons.io does not exist

I searched a lot and tried ever solution from web but its still not working. Can someone help me in this regards, I imported with import org.apache.commons.io.IOUtils;

Errors Error(26,39): package org.apache.commons.io does not exist Error(82,17): cannot find variable IOUtils

it started working now. I downloaded commons-io-2.4 from a different resource and imported to my project. Thanks

I had the same issue, solved by adding 'commons-io:commons-io:2.4' to dependencies in build.gradle:

dependencies {
    testImplementation (
        'commons-io:commons-io:2.4'
    )
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM