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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:23:14+00:00 2026-06-01T08:23:14+00:00

I am a newbie java dev using netbeans IDE 7.1.1 and im watching this

  • 0

I am a newbie java dev using netbeans IDE 7.1.1 and im watching this tutorial and right off the bat i get an error in my program even after 5 retypes to make sure its exactly the same as in the video so anyways this is the error

Error: Could not find or load main class javagame.JavaGame Java
Result: 1

and this is the code i have written

package JavaGame;

import javax.swing.JFrame;

public class JavaGame extends JFrame {

    public JavaGame(){
        setTitle("java game");
        setSize(500, 500);
        setResizable(false);
        setVisible(true);
        //setDefaultCloseOperation();

    }

    public static void main(String[] args){

    }
}

You can find in this image how my project structure looks.

  • 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-01T08:23:16+00:00Added an answer on June 1, 2026 at 8:23 am

    If that is an exactly copy-paste from your code, then your problem is with package name. Java is case sensitive and your package name is JavaGame so the qualified name of your class is JavaGame.JavaGame whilst the exception you get says that it can not find the class javagame.JavaGame.

    Rename your package using Netbeans from JavaGame to javagame. That should fix the problem.

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

Sidebar

Related Questions

Java newbie here...caution! I've set this practice app up using this example as a
I am a newbie in the Java world and this is among my first
Java newbie here, I'm having trouble setting a new line in this code: String
This is a homework question and im still a newbie to java. Write a
I'm a newbie in Java so I'm not sure if this is possible. Basically
I'm a java newbie, want to test out some hibernate goodies! I have netbeans
I'm a newbie to Java-related web development, and I can't seem to get a
I am a java newbie. I have been using Eclipse to test a simple
Java newbie here. I am using a third party library which gives me a
I (Java newbie) am running a Java program in Eclipse (project I downloaded from

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.