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

Learning IsEasy
seal-mask
.a{fill-rule:evenodd;}techdegree
Learning IsEasy
Full Stack JavaScript Techdegree Student 550 Points

Why and how is the instructor running Example.java without compiling the other file too?

I'm not able to run these files without compiling them both and running them both at the same time. I get many symbols not found

The instructor even said in a previous video that because Example.java requires symbols from the other file that it will automatically compile both for you. This is not how it's working for me. Not sure if my files are setup differently or if this video is old now or what

Thanks in advance

Learning IsEasy
seal-mask
.a{fill-rule:evenodd;}techdegree
Learning IsEasy
Full Stack JavaScript Techdegree Student 550 Points

It's just that good old symbol not found error for everything. I'm taking a break from this course for a short time to learn my fundamentals a bit more but the only way that I have ever been able to run these files is by doing:

javac *.java && java Main

Even in my IDE I have never been able to run a single class and it automatically detect the symbols from another class. That doesn't even make sense in my head :/

1 Answer

saykin
saykin
9,835 Points

Could you post the errors you get?