Java applet --> ClassNotFound Exception

前端 未结 1 637
名媛妹妹
名媛妹妹 2021-01-28 04:16

I\'m learning Java and reading this book: https://www.fca.pt/cgi-bin/fca_main.cgi/?op=2&isbn=978-972-722-791-4.

In this book, I have a Java applet exercise. I can ru

相关标签:
1条回答
  • 2021-01-28 04:36
    • code = "packageteste.Relogio.class" must not include .class
    • If you have your applet built into a .jar file use the archive="..." attribute to tell the browser what .jar it is.
    • If you don't have a .jar make sure the class packageteste.Relogio can be found as Relogio.class in the packageteste directory.

    See also here: How to specify correctly codebase and archive in Java applet?

    0 讨论(0)
提交回复
热议问题