【发布时间】:2015-06-09 20:52:13
【问题描述】:
我尝试加载的 Java 小程序无法运行。应该显示应用程序的框显示:错误。点击了解详情。
应用程序错误是 ClassNotFoundException
applet.twodeeeditor.mathEditor
详情如下:
Java Plug-in 10.75.2.13
Using JRE version 1.7.0_75-b13 Java HotSpot(TM) Client VM
User home directory = C:\Users\dell
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
单击“重新加载”会产生“内部错误:java.lang.NullPointerException,in unproctoredTest.QuestionSheet”
我在 Internet 选项下启用了 Java 小程序,并在 Java 控制面板下“允许”了有问题的站点,但小程序仍然无法运行。
任何帮助将不胜感激,因为我不熟悉 Java 代码术语。
【问题讨论】:
-
1) 为什么要编写小程序?如果是老师指定的,请参考Why CS teachers should stop teaching Java applets。 2) 见What is a stack trace, and how can I use it to debug my application errors? & What is a Null Pointer Exception, and how do I fix it? 3) 总是复制/粘贴错误和异常输出!
标签: java nullpointerexception applet classnotfoundexception