Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7894937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:31:15+00:00 2026-06-03T07:31:15+00:00

I am currently in a Java class using Java: How to Program, Ninth Edition

  • 0

I am currently in a Java class using Java: How to Program, Ninth Edition

I am following the book in creating a GradeBook and have come across an error stating no main classes found.

Here is the code for the two files in my project folder:

GradeBook.java

// Fig. 2.1: GradeBook.java
// Class declaration with one method.
public class GradeBook
{
    // display a welcome message to the GradeBook user
    public void displayMessage()
    {
        System.out.println ( "Welcome to the Grade Book!");
    } // end method displayMessage
} // end class GradeBook

GradeBookTest.java

// Fig. 3.2: GradeBookTest.java
// Creating a GradeBook object and calling its displayMessage method.

public class GradeBookTest
{
    // main method begins program execution
    public static void main( String[] args )
    {
        // create a GradeBook object and assign it to myGradeBook
        GradeBook myGradeBook = new GradeBook();

        // call myGradeBook's displayMessage method
        myGradeBook.displayMessage();
    } // end main
} // end class GradeBookTest    

I am using the NetBeans IDE to create and run my projects. It is only my second week into my Java class so I am still learning and working my way around NetBeans and Java. Any advice would be awesome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:31:16+00:00Added an answer on June 3, 2026 at 7:31 am

    If it was eclipse, I would have just run the main method in the GradeBookTest. Are you trying to run the project ? or just the GradeBookTest main ?
    Try running GradeBookTest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the URLUTF8Encoder.java class from W3C ( www.w3.org/International/URLUTF8Encoder.java ). Currently, it will
I'm currently working on Mangler's Android implementation. I have a java class that looks
I am creating a simple reporting program using java and iReport (from jasper), which
I am learning Java using the book Java: The Complete Reference. Currently I am
I am currently working on a program for one of my java class and
I currently have a small Java program which I would like to run both
I'm currently writing a java program that requires some Data to run. The data
I have an existing system built in Java we currently expand that by adding
I have an ASP.NET Webform which currently calls a Java WebService. The ASP.NET Webform
Currently when I make a signature using java.security.signature, it passes back a string. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.