I just ran into trouble in applet execution in webpage: An error dialog popped up:
calculator is my class name and Exercise4 is the folder that contains it. I am sure that the html file and the calculator.class are in the same folder named Exercise4. What is happening in here?
I am sure that the html file and the calculator.class are in the same folder named Exercise4.
That would be a problem. The HTML needs to be at the root, not inside the 'package' directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.