Win a copy of Event Streams in Action this week in the Java in General 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
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





 




}




 
Saloon Keeper
Posts: 6042
58
Eclipse IDE Firefox Browser MySQL Database VI Editor Java 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: 65053
247
  • 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: 65053
247
  • 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: 65053
247
  • 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: 65053
247
  • 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!