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

  • Home
  • SEARCH
  • 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 8168325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:29:09+00:00 2026-06-06T20:29:09+00:00

a few years back in college I wrote TONS of simple little java programs…

  • 0

a few years back in college I wrote TONS of simple little java programs… I haven’t used them in a while and I would like to go back and revist them. I believe I used Netbeans as my IDE (but i also could have used Eclipse… cant remember)..

anyways long story short…. I cant remember how to compile them and I cant open these as projects in any of my IDEs….

I’ve tried using javac and then java to run a few in the command line, however one specifically will not run and gives me this error:

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

I know this is because I don’t have a public static void main method in this program. I can’t remember why I don’t…. but here’s in theory how it should work…. I have 3 program files:

  • race.java
  • bicyclePanel.java
  • controlPanel.java

race extends JApplet and has a method public void init()…. which creates an instance of controlPanel class…. controlPanel class creates an instance of bicyclePanel and so on and so forth….

my question is.. am I supposed to have a main method? How can I rebuild this into an IDE and run? It’s been so many years I cant remember all the in’s & outs of java 🙁

  • 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-06T20:29:11+00:00Added an answer on June 6, 2026 at 8:29 pm

    Yes, you are supposed to have the main method if you plan on running it as a standalone Java application. In Eclipse you can use the Applet runner to run your applets directy as well. It’s Run As -> Java Applet.

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

Sidebar

Related Questions

I learnt HTML/CSS a good few years back, then PHP a little later. I've
I wrote a nice ARM assembler routine a few years back and it has
I used the Report Viewer Control with SQL 2005 a few years ago. Back
I have an old tool an (ex-)colleague wrote a few years back with Jaxer,
I'm working with a WCF service I wrote a few years back, which uses
I remember a few years back, I used a program that was capable of
In an application I wrote a few years back I use function SystemParametersInfo with
It's been a few years since I've been heavily into Java. Coming back to
I remember seeing a poster a few years back that had a nice break
The following question was asked in one of my interview (few years back) What

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.