Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help urgent please

 
alan james
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my first time using java on Netbeans IDE 6.9.1

iam trying to run this program but this message comes up

"Run Project"
"javaaplication7,BankAccount class wasn't found in JavaApplication7 project"

"Select the main class"
<No main classes found>

_________________________________________________________________________________________________________________

 
Tom Reilly
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can guess at a couple of things:
1. The error is complaining that javaaplication7,BankAccount does not exist but you posted code that called the class javaaplication7.Account
2. The class javaaplication7.Account does not have a method called main(), which is required to start a Java application

I'm curious. Why is this help so urgently needed? Should I be hiding my money inside my mattress? I think I'm starting to panic.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

You might be better off not using an IDE (I think you are on NetBeans, from the code posted), but using the command line, if you are a new programmer. You have already had two mistakes noticed; correct them and see what happens thereafter,

Please avoid writing vague subject lines, and we do not like "urgent" at all. I have edited your post, since you are new, by adding code tags, which you should always use for code. See how much better it looks with the tags .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic