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 - The Plan workspaces error

Hi good day, I am presently doing the Java Data Structures - The Plan, but after creating the package as instructed, I keep on receiving an error from workspaces, its says that the

javac: file not found: Example.java , not sure why because I have type every correctly and check over and over again , can anyone shed some light on this situation.

4 Answers

Hey Otis,

Can you share your workspace or post your code for your Example.java file and any other Java file in the directory? Also, can you post the command you are writing in the console to compile your Java program?

Hey Jacob, thanks for responding and a bit new to tree house , can you tell me how to do a snap shot of the screens and how post them here , so that you see what I am working on .

I got some help and got it working, the problem was that Example.java is located within the folder teamtreehouse which is then located in the folder com. When I type javac Example.java the workspace is looking for a file named "Example.java" located within the Java Data Structure. What I needed to do was simply, I type javac com/teamtreehouse/Example.java or move your Example.java file out of the two folders. but thanks for the concern Jacob

Hey Otis,

Sorry for the late response. That's what I figured. Glad you got it working.

Thanks Jacob