Java error .. How to fix this ?

Discussion in 'Programming' started by ActiveFrost, Feb 25, 2009.

  1. #1
    Ok, so .. I've a simple Java app, but I can't get it working in my browser ! Works fine if I run it from cmd, but completely breaking from html :(

    Here's a screeny :
    [​IMG]

    Any ideas, tutorials ? :rolleyes:

    Update >> Changed class to public class and now I've another error ( screeny ).
    [​IMG]
     
    ActiveFrost, Feb 25, 2009 IP
  2. devunion

    devunion Greenhorn

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #2
    You need to extend JApplet class. Only applets can be runned in browser. Read more about applets before.
     
    devunion, Feb 25, 2009 IP
    ActiveFrost likes this.
  3. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #3
    Yeah, already found some great info .. now it works :)
     
    ActiveFrost, Feb 25, 2009 IP