This week's book giveaway is in the Open Source forum.
We're giving away four copies of Programmers Guide to Apache Thrift and have Randy Abernethy on-line!
See this thread for details.
Win a copy of Programmers Guide to Apache Thrift this week in the Open Source forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
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





 




}




 
Bartender
Posts: 5817
56
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
 
Marshal
Posts: 64473
225
  • 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: 64473
225
  • 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: 64473
225
  • 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: 64473
225
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!