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

I keep getting file not found error

here's my work space It say treehouse:~/workspace$ javac Example.java
javac: file not found: Example.java
Usage: javac <options> <source files>
use -help for a list of possible options
treehouse:~/workspace$ when i try to compile the file

link for workspace: https://w.trhou.se/izshx5n54i

2 Answers

Your problem is that Example.java is located within the folder teamtreehouse which is then located in the folder com. When you type javac Example.java the workspace is looking for a file named "Example.java" located within the Java Data Structure. What you need to do is simply type javac com/teamtreehouse/Example.java or move your Example.java file out of the two folders

I had the same problem Matthew, but believe me the instructional video is misleading, but after moving the example file out of the folder, it worked, thanks a lot a million bro