I downloaded/installed JSAPI to work with JFileUpload, but I keep getting the following java error:
Code: Select all
java.lang.NoClassDefFoundError: jfileupload/transfer/client/core/N
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.access$400(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: jfileupload.transfer.client.core.N
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 20 more
Caused by: java.io.IOException: open HTTP connection failed:http://www.centurydirect.net/cdweb/jfileupload/transfer/client/core/N.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 24 more
Exception: java.lang.NoClassDefFoundError: jfileupload/transfer/client/core/N
I have added the applicable CODE ("jfileupload.upload.client.JSMApplet.class"), ARCHIVE ("/cdhtml/lib/jfileupload.jar,/cdhtml/lib/ftpimpl.jar,/cdhtml/lib/cnet.jar,/cdhtml/lib/clogging.jar,/cdhtml/lib/jsapi.jar"), and MAYSCRIPT changes to the .js file as required.
I've also tested with the original unedited .js and HTML files that came with the package and without the JSAPI they worked fine (both the FTP and HTML sample pages), but when I added the JSAPI files to the same "dist" directory (with the jsapi.jar file in the "lib" directory), the JSAPI sample page (applet_http_jsapi.html) generated the same java error as above.
I've also tried your online JSAPI test version and that did work.
I'd like to use the JSAppletInitialized callback so any help to get this working would be most appreciated...thanks!
Cid