Applets: Several considerations for calling applets with HTML

Source: Internet
Author: User

  • Problem: HTML cannot find the Java class.
    • First, if the Xxx.java file is in the same directory as the HTML file, run Cmd-javac the Xxx.java file directly, generating the Xxx.class file. The <applet> tags in HTML are configured to code= "Xxx.class" for normal access.
    • If the HTML to access the Xxx.class is not in the same directory as the HTML file. For example: The HTML file in the MyApplet directory, the path to be called is myapplet/my, you should take the cmd command to myapplet/my directory, execute Javac xxx.java to regenerate Xxx.class. The properties of the <applet> tag in HTML are codebase= "my" and can be accessed normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.