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 7705523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:53:05+00:00 2026-05-31T23:53:05+00:00

My current assignment in a beginning Java course is to animate a circle across

  • 0

My current assignment in a beginning Java course is to animate a circle across the window. The problem I am having is that no matter what I put when I want to create a circle or rectangle, or anything like that, I always get

java.lang.NoSuchMethodError: main
Exception in thread "main"

After Googling, I always find that the answer is that I am missing the ‘public static void main’ code, but I have it included every single time. Even simple code such as this (which sinec I have yet to see how rectangles or circles actually would appear I’m assuming this code should be correct):

public class Chapter6_Hw4
{
    public static void main(String[] args)
    {
        Rectangle r = new Rectangle(50, 50, 100, 100);
        System.out.println( "You have created a rectangle" );
    }
}

Hope I can get some help on this from you guys. I’m assuming this is just some really noobie issue I’m overlooking. Thanks!

  • 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-05-31T23:53:06+00:00Added an answer on May 31, 2026 at 11:53 pm

    Be sure that you’re compiling and running Chapter6_Hw4.java, not Rectangle.java.

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

Sidebar

Related Questions

Part of this assignment includes printing out on the display the current equation that
Okay so I'm having an issue with a current assignment (trust me this is
my problem is that the assignment of decodedProxyExcerpt2 below overwrites decodedProxyExcerpt1 and I do
This is a homework assignment, just for all that want to know. I'm writing
Current, I've got a stored procedure that has a main goal of doing a
I have some sites powered by Joomla, but with my current assignment I wanted
Wrote up a basic file handler for a Java Homework assignment, and when I
This is for a homework assignment, so I don't want the exact code, but
The goal of the assignment that I'm currently working on for my Data Structures
I'm doing an assignment that requires me to measure the time taken by two

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.