Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Local Development Environments Exploring Your IDE Importing External Code

import files into intellij ERROR

Everytime I import the folder "com", I get an error... cannot create class. I am able to import the Karaoke.java files.

Can someone please answer this question I'm having the same problem.

1 Answer

Brian Hache
Brian Hache
7,611 Points

I just figured this one out. I think that because the zip file we downloaded already contained .class files with the .java files, every time intelliJ comes to a .class file it stops importing the rest of the package and errors out "cannot create class file". Hopefully there is a real fix for this that a more experienced person can explain, but what I did was just import the com and module files up one by one omitting the .class files until I had what Craig has once he starts running everything.