为什么我的处理程序没有在index.html中显示?

时间:2012-03-01 17:03:20

标签: java processing

我在处理中创建了一个程序,当我在处理编辑器中运行它时,它可以正常工作。

但是,当我将程序导出到Web applet中时,将整个生成的applet文件夹存储在公共Dropbox文件夹中,然后访问生成的index.html的公共链接,程序无法加载。为什么程序在编辑器中运行正常,而不是HTML嵌入?

以下是来自java控制台的错误日志。该程序称为时间图。

Java Plug-in 1.6.0_29
Using JRE version 1.6.0_29-b11-402-11M3527 Java HotSpot(TM) 64-Bit Server VM
User home directory = /Users/davidfaux
----------------------------------------------------
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>
----------------------------------------------------
load: class timeplot.class not found.
java.lang.ClassNotFoundException: timeplot.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:195)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:249)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:179)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:160)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:690)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3045)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1497)
    at java.lang.Thread.run(Thread.java:680)
Exception: java.lang.ClassNotFoundException: timeplot.class

0 个答案:

没有答案