• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

need help urgent please

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>

_________________________________________________________________________________________________________________

 
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 73994
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
no wonder he is so sad, he hasn't seen this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic