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 trialgurveer aulakh
2,800 PointsError 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
jonasn
8,613 PointsYep, exactly the same problem for me here, seems to be a bug...
Learning Plus
Front End Web Development Techdegree Student 847 PointsOkay for me it was a silly mistake of not doing: /open Game.java
4 Answers
Timothy Hilley
2,292 Pointsyou have to spell misses right :D misses, not missses. line 17
gurveer aulakh
2,800 PointsHey, Timothy thxs.
Timothy Hilley
2,292 Pointsits probably not a bug jonasn, i can help you as well if you post a comment of your code
jonasn
8,613 PointsThanks, but got it by myself...spelling mistake, what else :D
Timothy Hilley
2,292 Pointsanytime, it helps me practice when i go on the community to answer
Peter Ayad
Front End Web Development Techdegree Graduate 20,766 Pointshello im mstill having the same issue?? can anyone help please
Timothy Hilley
2,292 PointsTimothy Hilley
2,292 Pointswould you mind posting your code please