Error with NetBeans palette

Questions on using RSyntaxTextArea should go here.

Moderator: robert

Error with NetBeans palette

Postby maleks » Tue Aug 19, 2014 8:12 pm

Hello,
I'm trying to add RSyntaxTextArea to my NetBeans palette but I try to add the RSyntaxArea component to my JFrame I get this error, any tips on what it could be?

Thanks!

Code: Select all
java.lang.NoClassDefFoundError: Could not initialize class org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaUI
   at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.createRTextAreaUI(RSyntaxTextArea.java:740)
   at org.fife.ui.rtextarea.RTextAreaBase.init(RTextAreaBase.java:630)
   at org.fife.ui.rtextarea.RTextArea.init(RTextArea.java:854)
   at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.init(RSyntaxTextArea.java:1826)
   at org.fife.ui.rtextarea.RTextAreaBase.<init>(RTextAreaBase.java:80)
   at org.fife.ui.rtextarea.RTextArea.<init>(RTextArea.java:182)
   at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.<init>(RSyntaxTextArea.java:340)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
   at java.lang.Class.newInstance(Class.java:433)
   at org.netbeans.modules.form.CreationFactory.createDefaultInstance(CreationFactory.java:178)
   at org.netbeans.modules.form.RADComponent.createBeanInstance(RADComponent.java:252)
   at org.netbeans.modules.form.RADComponent.initInstance(RADComponent.java:191)
   at org.netbeans.modules.form.MetaComponentCreator.initComponentInstance(MetaComponentCreator.java:1508)
   at org.netbeans.modules.form.MetaComponentCreator.createVisualComponent(MetaComponentCreator.java:975)
   at org.netbeans.modules.form.MetaComponentCreator.access$300(MetaComponentCreator.java:79)
   at org.netbeans.modules.form.MetaComponentCreator$2.run(MetaComponentCreator.java:286)
   at org.netbeans.modules.form.FormLAF$2.run(FormLAF.java:293)
   at org.openide.util.Mutex.doEventAccess(Mutex.java:1376)
   at org.openide.util.Mutex.readAccess(Mutex.java:327)
   at org.netbeans.modules.form.FormLAF.executeWithLookAndFeel(FormLAF.java:276)
   at org.netbeans.modules.form.MetaComponentCreator.precreateVisualComponent(MetaComponentCreator.java:283)
   at org.netbeans.modules.form.MetaComponentCreator.precreateVisualComponent(MetaComponentCreator.java:306)
   at org.netbeans.modules.form.HandleLayer$NewComponentDrag.init(HandleLayer.java:3367)
   at org.netbeans.modules.form.HandleLayer$NewComponentDrag.<init>(HandleLayer.java:3359)
   at org.netbeans.modules.form.HandleLayer.mouseMoved(HandleLayer.java:2167)
   at java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:329)
   at java.awt.Component.processMouseMotionEvent(Component.java:6572)
   at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3339)
   at java.awt.Component.processEvent(Component.java:6296)
   at java.awt.Container.processEvent(Container.java:2234)
   at java.awt.Component.dispatchEventImpl(Component.java:4883)
   at java.awt.Container.dispatchEventImpl(Container.java:2292)
   at java.awt.Component.dispatchEvent(Component.java:4705)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4546)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
   at java.awt.Container.dispatchEventImpl(Container.java:2278)
   at java.awt.Window.dispatchEventImpl(Window.java:2739)
   at java.awt.Component.dispatchEvent(Component.java:4705)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
   at java.awt.EventQueue.access$400(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:697)
   at java.awt.EventQueue$3.run(EventQueue.java:691)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
   at java.awt.EventQueue$4.run(EventQueue.java:719)
   at java.awt.EventQueue$4.run(EventQueue.java:717)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
   at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
maleks
 
Posts: 1
Joined: Tue Aug 19, 2014 8:10 pm

Re: Error with NetBeans palette

Postby robert » Wed Aug 20, 2014 11:21 am

The RSyntaxTextAreaUI class is in the same jar as the RSyntaxTextArea class. Are you adding it by importing the rsyntaxtextarea.jar in some way, or by adding classes (I'm unfamiliar with the NetBeans GUI editor)? Are you sure class files for all classes in the project are on whatever classpath they need to be on?
User avatar
robert
 
Posts: 805
Joined: Sat May 10, 2008 5:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron