Doing ao.onstep(0); crashes the browser. TAG_APPLET seems to refute all attempts at getting it to work.
When I tried using relative paths to the .jar it loaded bypassing the loading bar. My timelapse demo still has a print out of the keys - which is why I use it for this (as well as its 1mb size).
This is the object (note that I'm launching this from /misc/ which is at the same depth as /PBeta/):
Code:
var ao = new AppletObject('timelapseSmall', ['timelapseSmall.jar' ], '640', '480', 'true', '../PBeta/', [], AppletObjects.TAG_OBJECT);
This is what the console said:
Code:
load: class de.bezier.js.preloading.Preloading.class not found.
java.lang.ClassNotFoundException: de.bezier.js.preloading.Preloading.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: E:\MY DOCUMENTS\SITES\robotacid\PBeta\de\bezier\js\preloading\Preloading\class.class (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Exception in thread "Thread-4" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
P:toggle play, S:toggle save images, +:frame forward, -:frame back, 1&2:bleach camera image, 3&4:blobFrames-/+,
I:toggle edges, R:save frame, D:toggle image, T:toggle 3D, O:toggle tunnel 5&6:tunnel Alpha
7&8:threhold levels C:toggle tunnel shift U:toggle tunnel outline F:tunnel fill 9&0:3D depth Z:Blobs off/on
W:webcam/timelapse
So a silent death from ZZZZZZ.jar and timelapse launches as usual.
Uploaded the new crashy version.
I went for a work trial for
these guys back in autumn last year and all of my time there I just consistently uprooted bugs in their in-house language. It's one of my special powers. (Although being unemployed sucks I'm really quite glad I'll never see that awful language again.)