I had that horrible pain that too. Ok try this again if you have energy left Follow my steps and let me know if it is working. (Some had problem with Gradle because he was using the file from Download.) Download fresh new file from treehouse Extract the file and copy to the folder: C -> Users -> (Your Username Foler) -> IdeaProjects Then start IntelliJ click Import Project click Gradle chose right folder please look carefully my picture This is why some people get problem...!!! my screenshot/ image link https://imgur.com/mbxthfz.png my screenshot/ image link https://imgur.com/0eBkD58.png When IntelliJ has loaded the file you will get this error, just click Upgrade Gradle Wrapper ... my screenshot/ image link https://imgur.com/Yy3dpFM.png Go to terminal and call gradlew then gradlew.bat and gradlew.dependencies ( I dunno why but just in case) my screenshot/ image link https://imgur.com/ZcmBIVU.png if you have got an error from Gradle something with JAVA_HOME path, check this post : JAVA_HOME for Windows (https://teamtreehouse.com/community/windows-gradle-how-to-put-path-javahome) if you have got a funny icon like this my screenshot/ image link https://imgur.com/d7eGpOt.png just put mark as source root my screenshot/ image link https://imgur.com/iyYnVof.png Go to Main.java and accept sdk ( I choose 13 ) my screenshot/ image link https://imgur.com/EOqADLQ.png Go build.gradle and accept their chose (check also gradlew.bat file sometimes if also suggesting something just accept that too) my screenshot/ image link https://imgur.com/s8WaAvO.png Go to the right bar and find prepareSubmission and if you have got Execution failed that means you are ready to code your challenge!! :) Good Luck!! and let me know if it works! Answer from Oshedhe Munasinghe on teamtreehouse.com
Top answer
1 of 2
3
I had that horrible pain that too. Ok try this again if you have energy left Follow my steps and let me know if it is working. (Some had problem with Gradle because he was using the file from Download.) Download fresh new file from treehouse Extract the file and copy to the folder: C -> Users -> (Your Username Foler) -> IdeaProjects Then start IntelliJ click Import Project click Gradle chose right folder please look carefully my picture This is why some people get problem...!!! my screenshot/ image link https://imgur.com/mbxthfz.png my screenshot/ image link https://imgur.com/0eBkD58.png When IntelliJ has loaded the file you will get this error, just click Upgrade Gradle Wrapper ... my screenshot/ image link https://imgur.com/Yy3dpFM.png Go to terminal and call gradlew then gradlew.bat and gradlew.dependencies ( I dunno why but just in case) my screenshot/ image link https://imgur.com/ZcmBIVU.png if you have got an error from Gradle something with JAVA_HOME path, check this post : JAVA_HOME for Windows (https://teamtreehouse.com/community/windows-gradle-how-to-put-path-javahome) if you have got a funny icon like this my screenshot/ image link https://imgur.com/d7eGpOt.png just put mark as source root my screenshot/ image link https://imgur.com/iyYnVof.png Go to Main.java and accept sdk ( I choose 13 ) my screenshot/ image link https://imgur.com/EOqADLQ.png Go build.gradle and accept their chose (check also gradlew.bat file sometimes if also suggesting something just accept that too) my screenshot/ image link https://imgur.com/s8WaAvO.png Go to the right bar and find prepareSubmission and if you have got Execution failed that means you are ready to code your challenge!! :) Good Luck!! and let me know if it works!
2 of 2
0
@Oshedhe Munasinghe Thanks for taking the time to help out! It was definitely a major pain. I got it working yesterday though with a slightly different process. "Download fresh new file from treehouse Extract the file and copy to the folder: C -> Users -> (Your Username Foler) -> IdeaProjects"
๐ŸŒ
Team Treehouse
teamtreehouse.com โ€บ community โ€บ java-package-orgapachecommonscsv-does-not-exist
java: package org.apache.commons.csv does not exist (Example) | Treehouse Community
July 14, 2019 - Java is not my 'first language' and I have very little experience with Windows (I'm a Mac boy). It looks like you are doing things correctly, but for some reason there are still some missing critical files, probably inside the preference folders for your OS and/or IntelliJ.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ am i importing apache commons csv correctly?
r/learnprogramming on Reddit: Am I importing Apache Commons CSV correctly?
February 24, 2021 -

Issue:

I'm using IntelliJ but had trouble importing org.apache.commons.csv... When hovering over the method it said it "Cannot resolve symbol 'CSVRecord'".

โš ๏ธ The image is after I applied a fix, sorry, before it said create class, not import.

Imgur: The magic of the Internet

Applied Fix:

  1. Download Apache Commons CSV Source

  2. Rename the .xml to a more relevant name

  3. Copy the .xml to my IDE's library

  4. Restart the IDE

I just want to verify whether this is an appropriate way of importing this library. I'm not entirely sure if there's a best practice.

Thank you, awesome Humans! โค๏ธโœŒ๏ธ

๐ŸŒ
JetBrains
youtrack.jetbrains.com โ€บ issue โ€บ IDEA-238891 โ€บ Error-java-package-orgapachecommonsio-does-not-exist
Error: java: package org.apache.commons.io does not exist
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
Find elsewhere
๐ŸŒ
JetBrains
intellij-support.jetbrains.com โ€บ hc โ€บ en-us โ€บ community โ€บ posts โ€บ 4405958490770-Java-package-does-not-exist-error
Java "package does not exist" error โ€“ IDEs Support (IntelliJ Platform) | JetBrains
I had to add commons-csv library since edu.duke classes depend on it. ... Here is the complete working project: https://dl.dropboxusercontent.com/s/50dx5czyxxj1j7s/sample.zip. ... Thank you so much for your time. Frankly, much of this is a mystery to me, as I still can't recreate your project (via copying and pasting) to one which will compile. It apparently takes something more that I would need to do from within IntelliJ.
๐ŸŒ
JetBrains
intellij-support.jetbrains.com โ€บ hc โ€บ en-us โ€บ community โ€บ posts โ€บ 115000630124-Can-not-resolve-the-symbol-apache-in-intelliJ-v2017-2-5-on-windows
Can not resolve the symbol apache in intelliJ v2017.2.5 on windows โ€“ IDEs Support (IntelliJ Platform) | JetBrains
I am trying to run a simple scala program on a Maven project using intelliJ 2017.2.5. I have enables auto-import maven projects. In my code, I'm using the statement "import org.apache.commons.io.FileUtils". The compiler is throwing an error here saying that apache is not recognized. I could see that the org package does not contain the apache subfolder in the packages --> libraries list.
๐ŸŒ
Maven Repository
mvnrepository.com โ€บ artifact โ€บ org.apache.commons โ€บ commons-csv
Maven Repository: org.apache.commons ยป commons-csv
July 27, 2025 - The Apache Commons CSV library provides a simple interface for reading and writing CSV files of various types.
๐ŸŒ
JetBrains
intellij-support.jetbrains.com โ€บ hc โ€บ en-us โ€บ community โ€บ posts โ€บ 6779294805266-org-apache-commons-lang3-not-recognized-in-my-Intellij-IDE
org.apache.commons.lang3 not recognized in my Intellij IDE โ€“ IDEs Support (IntelliJ Platform) | JetBrains
however my IDE shows that its not recognized but the code still works perfectly fine, I just find it annoying since it's showing I have errors in my project when I don't. (The app still compiles fine etc. my IDE just states that it cannot resolve symbol commons) ... File | Invalidate Caches... | Mark first two checkboxes | Invalidate and Restart ยท Close the project window File | Close Project and IntelliJ. Open your project in OS file explorer and remove all *.iml files and the .idea folder from your project. Delete .m2 maven folder. Re-import the project into IntelliJ from Existing sources.
๐ŸŒ
GitHub
github.com โ€บ apache โ€บ commons-csv
GitHub - apache/commons-csv: Apache Commons CSV
Questions related to the usage of Apache Commons CSV should be posted to the user mailing list. You can download source and binaries from our download page. Alternatively, you can pull it from the central Maven repositories: <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-csv</artifactId> <version>1.14.1</version> </dependency>
Starred by 407 users
Forked by 291 users
Languages ย  Java 99.8% | Shell 0.2%
๐ŸŒ
JetBrains
intellij-support.jetbrains.com โ€บ hc โ€บ en-us โ€บ community โ€บ posts โ€บ 206166559-Java-project-does-not-build-on-windows-8-1-and-Java-1-7-if-dependency-jar-is-not-inside-the-project-directory
Java project does not build on windows 8.1 and Java 1.7 if dependency jar is not inside the project directory โ€“ IDEs Support (IntelliJ Platform) | JetBrains
I am using windows 8.1-64bit and Java 1.7.0_79 and Intellij idea community edition 14.1.2. In a simple Java project I have dependency jar marked and the jar resides outside the project under C:/Users/username/Appdata/Roaming/lib/commons-io.jar. The project has just a single java file using a helper from FileUtils in apache commons-io.