Applet

Hello World Applet Example

Example Output

Want to learn quickly?
Try one of the many quizzes. More than Java 400 questions with detailed answers.

Add Comment

  • Hello all

    I am super new to Java and already have problems with codes in general, well i am still learning!

    I run the above code and seems i am doing something wrong because i get an error:
    =============
    ———- Run ———-Error: Main method not found in class HelloWorldApplet, please define the main method as: public static void main(String[] args)
    Output completed (0 sec consumed) – Normal Termination
    =============
    Can you explain why i got this error and what can i do to fix it?
    Compile correct but when i run the error shows.

    Have jdk1.7.0_07 installed correct, able to run other codes but not this one, try in NetBeans, Eclipse, EditPlus but nothing

    Please have a look and let me know where am i wrong

    Best regards
    Gabi

Sponsors

Facebook Fans