Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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: 74721
336
  • 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 .
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic