• Post Reply Bookmark Topic Watch Topic
  • New Topic

Could not find or load main class Games.Board.TicTocToeGUIGame  RSS feed

 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Upon trying to run this program I get the following ...Error: Could not find or load main class Games.Board.TicTocToeGUIGame. Would you please help me figure out what is going on.

Main


Cell



board



 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37462
537
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Danny,
What command line are you using to run it? Does it have -cp (classpath) in it so Java can find the classes TicTocToeGUIGame relies on?

Note that in Java, package names have the convention of beginning with lower case names. This isn't the problem here, but good to know as you learn Java.
 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure, I am using Eclipse and I used the run button while the Games.Board.TicTocToeGUIGame.
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Danny Broadwater wrote:Not sure, I am using Eclipse and I used the run button while the Games.Board.TicTocToeGUIGame.

If you modify package earlier, just run clean first and try.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!