Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Applet Html Fail

  • 01-03-2011 10:19pm
    #1
    Registered Users, Registered Users 2 Posts: 70 ✭✭


    Hey guys,
    Recently, I made an applet with eclipse and I tried to put it on a website (offline for the mo) using IE. I used this code:

    <td><applet code="Maths1.class" width=250 height=250></td>

    The applet works with eclipse and it is in the same folder as the html file. This code has worked for me in the past. The only thing that is appearing is "Error. Click for details".

    Whats gone wrong?


Comments

  • Moderators, Politics Moderators Posts: 42,127 Mod ✭✭✭✭Seth Brundle


    Is Maths1.class in the same folder as the web page?


  • Registered Users, Registered Users 2 Posts: 70 ✭✭markytowny94


    Yes.


  • Registered Users, Registered Users 2 Posts: 339 ✭✭duffman85


    You didn't close the applet tag
    [PHP]
    <applet code="Maths1.class" width=250 height=250></applet>
    [/PHP]

    does your Maths1 class import an extend the applet class?
    import java.applet.*; 
    
    public class Maths1 extends Applet{
          ....
          ...
          ...
    }
    
    


Advertisement