• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 10978
87
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows ChatGPT
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 <property name="java.failonerror" value="true"/>  is the  errror
 
Marshal
Posts: 80222
424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 80222
424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 80222
424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 80222
424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Wanna see my flashlight? How about this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic