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 Objects (Retired) Harnessing the Power of Objects Methods and Constants

Paul Henry
Paul Henry
2,125 Points

REPL problem

java> :load PezDispenser.java
Loaded source file from PezDispenser.java
java> PezDispenser pd = new PezDispenser("Yoda");
ERROR: cannot find symbol
symbol: class PezDispenser
location: interface Evaluation
PezDispenser method$6ckstjz2o93md7lh1wxg();
^

I don't understand what I'm doing wrong. I'm following the video exactly and I can't go forward.

1 Answer

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Try to compile your program outside the REPL:

javac PezDispenser.java

And see if you get a syntax error. Unfortunately the REPL is not the best at sharing errors.

Mira Estil
Mira Estil
3,668 Points

I too am having this issue , but I see from previous threads that this has been addressed and not yet solved

https://teamtreehouse.com/community/problems-with-repl