• Post Reply Bookmark Topic Watch Topic
  • New Topic

GameLauncher Compiler Error  RSS feed

 
Darshan Vasudev
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have started to learn JAVA and was referring Head First JAVA book.
I have 3 separate .java files - GuessGame.java , Player.java, GameLauncher.java
I have successfully compiled GuessGame.java & Player.java

But I am getting an error when I am compiling GameLauncher.java
I have attached the error screen shot


Help appreciated
error.jpg
[Thumbnail for error.jpg]
 
Darshan Vasudev
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Player-Code.png
[Thumbnail for Player-Code.png]
GameLauncher-Code.png
[Thumbnail for GameLauncher-Code.png]
 
Dave Tolls
Ranch Foreman
Posts: 3064
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

but the error talks about StartGame.
Java is case sensitive.
 
Darshan Vasudev
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
Campbell Ritchie
Marshal
Posts: 56562
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You have already got an answer for your direct question.
I have added code tags to your code. Always use them: doesn't it look better
Avoid posting screenshots; look here for how to copy error messages; text is much easier to read.
 
Campbell Ritchie
Marshal
Posts: 56562
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use MS Notepad for your code; it is not at all good for Java® coding. I like a thing called NotePad++, but you can read about editors here. you should turn on features like automatic indentation (change 1 tab → 4 spaces), bracket matching, syntax colouring, line numbers and right margin (anywhere between 80 and 120). You will find such an editor much better for programming.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!