简体   繁体   English

在appletviewer中运行applet时出错:NoClassDefFoundError

[英]Error in running applet in appletviewer: NoClassDefFoundError

I just ran into trouble in applet execution in webpage: An error dialog popped up: 我只是在网页中执行applet时遇到麻烦:弹出错误对话框: “计算器是我的班级名称,exercise4是包含它的文件夹”

calculator is my class name and Exercise4 is the folder that contains it. 计算器是我的班级名称,Exercise4是包含它的文件夹。 I am sure that the html file and the calculator.class are in the same folder named Exercise4. 我确定html文件和Calculator.class位于同一个名为Exercise4的文件夹中。 What is happening in here? 这里发生了什么?

I am sure that the html file and the calculator.class are in the same folder named Exercise4. 我确定html文件和Calculator.class位于同一个名为Exercise4的文件夹中。

That would be a problem. 那将是一个问题。 The HTML needs to be at the root, not inside the 'package' directory. HTML需要在根目录中,而不是在“ package”目录中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM