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 trialGeorge Rotaru
1,927 PointsSyntax error when compiling the code
I get the following error when trying to compile my own code for this exercise:
"JavaTester.java:6: error: cannot access KaraokeMachine import com.teamtreehouse.KaraokeMachine; ^ bad source file: ./com/teamtreehouse/KaraokeMachine.java file does not contain class com.teamtreehouse.KaraokeMachine Please remove or make sure it appears in the correct subdirectory of the sourcepath."
Any suggestions?
1 Answer
George Rotaru
1,927 PointsNever mind my question. The problem was I was not importing the directories correctly, even though it was working on my local IDE.
"package com.teamtreehouse;
import com.teamtreehouse.model.Song; import com.teamtreehouse.model.SongBook; import com.teamtreehouse.model.SongRequest;" is what I should have had instead.