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 trialKate Dougherty
8,334 PointsError when running in jShell
I have a problem similar to ones other people have already reported. I get an error in jshell, but I do have all the required code, including in the main Hangman file.
Thank you.
1 Answer
Dan Bearden
24,231 PointsMaybe if you paste the exact error you are having it might help. I just forked your workspace and made no changes, yet I was able to run it.
treehouse:~/workspace$ jshell
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Jul 07, 2017 10:51:54 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
| Welcome to JShell -- Version 9-ea
| For an introduction type: /help intro
jshell> /open Game.java
jshell> Game game = new Game("treehouse");
game ==> Game@c038203
jshell> game.applyGuess('t');
$3 ==> true
Mohib Arsala
7,123 PointsMohib Arsala
7,123 PointsI am faced with similar error such as below,
| illegal character: '\u00b4'
| example.indexOf(ยดeยด) != -1
| ^