Jump to content

HTML Applets

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
I created this applet in Netbeans today, and it runs fine in netbeans. I can see the entire applet and it works perfectly. When I run the sample HTML file that netbeans gave me, I see the applet.

When I put the applet into my own file it doesn't show up.

I have the path correct I know that. The name of the class is friends.class and the name of the HTML file is test.html. Unfortunately I can't upload the .class file. I'm certain that I got the path correct. :)

Any ideas as to why I can't get the applet to show in the browser.

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
It is probably an error with your Java not your HTML. Look at your browsers Java/Error console for more information regarding your issue.

#3
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
Well thanks. I am really curious about this, because it all worked with the HTML file netbeans made.

The error from Java/Error I'm getting is:

java.lang.NoClassDefFoundError: friends (wrong name: applets/friends)

which is weird. Perhaps move this over to Java, so I can post my java. :)

#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
NoClassDefFoundError (Java 2 Platform SE v1.4.2)

Seems like you have a link problem.

#5
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts
I meant to post to this a couple of days ago but my computer crashed while comparing your java applet code to the code I used on my website for a java based uploader applet.

Here is the code that should fix that, if you need to pass parameters into the application, I can help you with that on request:

<applet name="upload" code="Main.class" archive="mthsupload.jar" width="500" height="500">
</applet>