|
I am fairly new to Java and very new to Netbeans. I have created an applet which works in the applet viewer built into Netbeans. When I try to call the applet from an HTML file, I get the following error(it is longer, but here is the start of it.
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/jdesktop/beansbinding/Property at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3136) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1497) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.NoClassDefFoundError: org/jdesktop/beansbinding/Property at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at sun.plugin2.applet.Plugin2Manager$13.run(Plugin2Manager.java:3060) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677) at java.awt.EventQueue.access$000(EventQueue.java:85) at java.awt.EventQueue$1.run(EventQueue.java:638) at java.awt.EventQueue$1.run(EventQueue.java:636) at java.security.AccessController.doPrivileged(Native Method) at I have seen suggestions to check the library for beans binding and I do that and it is in place. Here is part of the code for the HTML file I am using. <APPLET codebase="classes" code="sbannergui/SBannerGUIFORM.class" width=1500 height=800></APPLET> I don't know what I am doing wrong to cause this error. I have been searching for a while, but can't find anything. Any help anyone can give is appreciated. Thanks! |
|
Administrator
|
On 02/16/2012 11:28 PM, emills62183 wrote:
> I am fairly new to Java and very new to Netbeans. I have created an applet which works in the applet viewer built into Netbeans. When I try to call the applet from an HTML file, I get the following error(it is longer, but here is the start of it. > > java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/jdesktop/beansbinding/Property > at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3136) > at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1497) > at java.lang.Thread.run(Thread.java:680) > Caused by: java.lang.NoClassDefFoundError: org/jdesktop/beansbinding/Property > at java.lang.Class.getDeclaredConstructors0(Native Method) > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) > at java.lang.Class.getConstructor0(Class.java:2699) > at java.lang.Class.newInstance0(Class.java:326) > at java.lang.Class.newInstance(Class.java:308) > at sun.plugin2.applet.Plugin2Manager$13.run(Plugin2Manager.java:3060) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677) > at java.awt.EventQueue.access$000(EventQueue.java:85) > at java.awt.EventQueue$1.run(EventQueue.java:638) > at java.awt.EventQueue$1.run(EventQueue.java:636) > at java.security.AccessController.doPrivileged(Native Method) > at > > I have seen suggestions to check the library for beans binding and I do that and it is in place. Here is part of the code for the HTML file I am using. > > <APPLET codebase="classes" code="sbannergui/SBannerGUIFORM.class" width=1500 height=800></APPLET> > > I don't know what I am doing wrong to cause this error. I have been searching for a while, but can't find anything. Any help anyone can give is appreciated. > > Thanks! > > > > Google for "applet tag attributes" and see the archives attribute. This is where you need to reference your library JAR files. Your build needs to be sure it places things according to what you are pointing at with this html. Hope it helps. Wade -- ================= Wade Chandler Software Engineer and Consultant NetBeans Contributor NetBeans Dream Team Member wadechandler.com netbeans.org ==================== Wade Chandler Software Engineer NetBeans and Open Source Contributor |
| Powered by Nabble | See how NAML generates this page |
