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!
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

Richard Hewat
750 PointsWhen using java-repl in the workspace, I cannot define a variable - Terminating... is displayed and I exit java-repl.
Java-repl not working - get terminating and java-repl exits back to treehouse:-~/workspace$ prompt.
treehouse:~/workspace$ java-repl
Welcome to JavaREPL version 272 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_20)
Type expression to evaluate, :help for more options or press tab to auto-complete.
java> String example = "hello";
Terminating...
treehouse:~/workspace$ java-repl
Welcome to JavaREPL version 272 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_20)
Type expression to evaluate, :help for more options or press tab to auto-complete.
java> String example = "hello";
Terminating...
treehouse:~/workspace$
2 Answers

Jim Hoskins
Treehouse Guest TeacherI think I found the problem. We had some configuration differences between our different workspace environments (Java vs. Frontend vs PHP, etc..). It appears that attempting to run java-repl
from a Frontend workspace exhibits the behavior seen here.
We've updated the system, so java-repl should work anywhere, but we do recommend using the workspace environment that most closely matches your needs.

Craig Dennis
Treehouse TeacherStill happening? I cannot recreate at the moment.

Richard Hewat
750 PointsYes it is still happening.
Richard Hewat
750 PointsRichard Hewat
750 PointsWorking now. Thanks for your help.