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 Java Data Structures Efficiency! Building the Model

Brandon Kelly
Brandon Kelly
3,808 Points

javac: file not found: Karaoke.java

https://w.trhou.se/sdd5m3bgvn There's the link to the snapshot of my workspaces. same problem as Dominik, but tried restarting the computer and receive the same error. Any advice?

Dean Irwin
Dean Irwin
6,499 Points

I forked your workspace to see what was up, and I agree something was wierd, I think I have found out why though. If you know about linux file structure, terminal commands, etc... You'd do a better job understanding this than I do. So from my understanding, the workspace starts in a given directory, as the workspace directory. Karaoke.java, in your workspace, is under the com file. It needs to be under the teamtreehouse file.

So it looks something like this: (I am linking a pastebin because it won't let me submit this with line breaks) https://pastebin.com/FC2s9HZp

2 Answers

Brandon Kelly
Brandon Kelly
3,808 Points

I tried using a drag and drop method to move the file from the com folder to the teamtreehouse folder and it doesn't work either way. Would drag and drop in Workspaces actually move the file to the correct location or should I create a new Karaoke.java and paste in all the code? I know nothing about Linux file structure or terminal commands unfortunately. Thanks for the help.

Dean Irwin
Dean Irwin
6,499 Points

It should drag and drop into the right location. It might just be easier to create a new file and then copy and paste. Whatever you please. :)