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 Creating the MVP Storing Guesses

gurveer aulakh
gurveer aulakh
2,800 Points

Error when running Game.java file in jshell?

I did exactly the way it should be done in but when I'm running it then it gives me the following error in jshell :

jshell> /open Game.java

jshell> Game game = new Game("treehouse");
| attempted to use class Game which cannot be instantiated or its methods invoked until variable misses is declared

would you mind posting your code please

Yep, exactly the same problem for me here, seems to be a bug...

4 Answers

you have to spell misses right :D misses, not missses. line 17

its probably not a bug jonasn, i can help you as well if you post a comment of your code

Thanks, but got it by myself...spelling mistake, what else :D

anytime, it helps me practice when i go on the community to answer

hello im mstill having the same issue?? can anyone help please