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

When 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$

Working now. Thanks for your help.

2 Answers

Jim Hoskins
STAFF
Jim Hoskins
Treehouse Guest Teacher

I 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
STAFF
Craig Dennis
Treehouse Teacher

Still happening? I cannot recreate at the moment.

Yes it is still happening.