Java Applet not loading in browser

Posted on 2010-11-29
Last Modified: 2012-05-10
I used an existing working java checkers applet game.  It had:
and some other class files:
example: Checkers$Board.class

also supplied was the

I created a project in NetBeans call "javachekcers" , added the class files and been editing the Checkers .java file but when I recompiled it and uplaoded all the class files to the web server the applet no longer works (I can run it in debug in NetBeans).

I found lots of suggestion about the html code attribute of the applet tag, but haven't been able to get to work: <applet code="javacheckers.Checkers" width="350" height="250" alt="(Applet 'Checkers' should be displayed here.)"> is what i currently use to call it.

and the applet is here:

Here is the first of many errors: java.lang.NoClassDefFoundError: Checkers (wrong name: javacheckers/Checkers)

Question by:christamcc
  • 3
LVL 86

Accepted Solution

CEHJ earned 500 total points
ID: 34229453
Your package is probably wrong. It needs to be (in relation to where the html is)

LVL 86

Expert Comment

ID: 34229465
The code should be available at

and the package declaration in the source should be

package javacheckers;
LVL 16

Expert Comment

ID: 34229485

Author Closing Comment

ID: 34229488
oh, man!  My savior!  and speedy... :)  Thank you!
LVL 86

Expert Comment

ID: 34229496

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
even odd program using while loop 3 40
Windows 10 IE Certificate Issue 10 45
how to install java on RHEL image on EC2 4 26
going to wrong jsp page 2 19
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question