• Post Reply Bookmark Topic Watch Topic
  • New Topic

BoardGameTester TicTacToe, mastermind, connect four with an error of <property name ="java.fail  RSS feed

 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This the error I receive when I try to run the program.    error of   <property name ="java.failonerror"  value "true"/>  and more errors   can you please help me  thank you for your time





 




}




 
Carey Brown
Saloon Keeper
Posts: 3315
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you get a stack trace with your error message?
It helps if you cut-n-paste the exact and complete error text here.
 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  <property name="java.failonerror" value="true"/>  is the  errror
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is not a Java® error message. How are you running that program?
 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I run the program all I get is


Error: Could not find or load main class boardgametester.BoardGameTester
C:\Users\danny\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1


when I click on  the link I receive

<property name="java.failonerror" value="true"/>
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ignore what it says about exit value; the Exception about cannot find class is what matters.
Have you compiled the .java file? Where is the .class file? Have you tried running it from the command line? Did NetBeans complain about any errors when you tried compiling that class?
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot test your code, but I am pretty sure the serial version UID is not supposed to come before the start of the class.
 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand what you are saying
 
Danny Broadwater
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like I said earlierwhen i try to compile or run game i get the error

Error: Could not find or load main class boardgametester.BoardGameTester
C:\Users\danny\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1

That is all it will do
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Danny Broadwater wrote:Like I said earlierwhen i try to compile or run game i get the error

Error: Could not find or load main class boardgametester.BoardGameTester . . .
No, you don't. You can only get that error when you try to run the application. You can't get that sort of error when you try to compile it. You need to be specific because different problems need different solutions. How are you compiling the code? Where is the BoardGameTester.class file?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!