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

Error Cannot create class-file for the Importing External Code lesson for the Local Development Environment topic

I'm moving the local Karaoke 'com' folder to the Intellij 15.0.1 (64bit Linux edition) to folder 'src'. The Intellij COPY dialog box appear 'New name: com' and To directory: /home/username/ideaProjects/Karaoke/src" . I accept the default setting.

I get a dialog box 'Error Cannot create class-file' from Intellij. When I check the 'src' folder the 'com.teamtreehouse.model and Song appears.

No problem of moving 'karaoke.java' to Intellij's 'src' folder.

Odd, have you tried just making the the file in IntelliJ and then copy and pasting the contents?

1 Answer

Instead of drag and drop the Karaoke 'com' folder to the Intellij 'scr' folder which did not work by importing existing external code. I had to copy individual files into 'scr' folder and this work for the Intellij 15 (64bit Linux version) on Debian 8 (Jessie).