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.
HTML Applets
Started by chili5, Sep 21 2008 12:51 PM
4 replies to this topic
#1
Posted 21 September 2008 - 12:51 PM
|
|
|
#2
Posted 22 September 2008 - 01:26 PM
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
Posted 22 September 2008 - 02:37 PM
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:
which is weird. Perhaps move this over to Java, so I can post my java. :)
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
Posted 22 September 2008 - 08:26 PM
#5
Posted 23 September 2008 - 05:59 AM
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:
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>


Sign In
Create Account


Back to top









