Jump to content

Problem With Jar File/HTML File (JApplet)


Recommended Posts

Here's my HTML file:

 

<HTML>

<HEAD>

<TITLE>Hangman</TITLE>

</HEAD>

<BODY>

<applet code="Hangman.jar" width="500" height ="200" codebase="." archive="file:/C:/Java/Hangman/" alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."

>

Your browser is ignoring the <APPLET> tag!

 

</applet>

 

</BODY>

</HTML>

 

Here's my error message when I go to try and run it:

 

x5nol2.jpg

 

Don't know what to do, mainly because the error is non-sensical.

Link to comment
Share on other sites

  • 3 months later...

Do you still need help with this?

 

I would have to delve into Sun's Oracle's tutorials, but it looks like tutorial code and I can't see anything obviously wrong with it. I'm not quite sure what goes into the archive attribute on the applet tag though, and whether a directory is the right value.

 

How'd you write this code, did you use a reference or a tutorial, or a book? If so, the original link might be helpful as there could be some important context there.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...