Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

Java Applet not loading in browser

I used an existing working java checkers applet game.  It had:
Checkers.class
ConsoldeCanvans.class
ConsolePanle.class
ConsoleApplet.class
and some other class files:
example: Checkers$Board.class

also supplied was the Checkers.java

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: http://www.e3pro.com/test/test1.html

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

thanks!
Christa
0
christamcc
Asked:
christamcc
  • 3
1 Solution
 
CEHJCommented:
Your package is probably wrong. It needs to be (in relation to where the html is)

./javacheckers/Checkers.class
0
 
CEHJCommented:
The code should be available at

http://www.e3pro.com/test/javacheckers/Checkers.class

and the package declaration in the source should be

package javacheckers;
0
 
christamccAuthor Commented:
oh, man!  My savior!  and speedy... :)  Thank you!
0
 
CEHJCommented:
:)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now