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 Getting There Packages

Jeffrey Duarte
Jeffrey Duarte
9,706 Points

No package error.

I was able to get the program to work in workspaces, but working through the OSX Terminal I am getting an error that says there is no com.teamtreehouse package. StackOverflow says something about adding a -sourcepath, but I'm not sure what that means exactly. Can anyone assist me with this, please?

1 Answer

Jeffrey Duarte
Jeffrey Duarte
9,706 Points

Never mind guys. The issue was that I was nesting my Example.java file in the com folder. It needs to be on the same level as the com.

Thank you guys anyway.