Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

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, Paid Member Posts: 44,272 Mod ✭✭✭✭Seth Brundle


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

    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/ .



  • 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